O'Reilly logo

Pragmatic Scala by Venkat Subramaniam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Wrapping Up

Calling Java code from Scala is trivial. For most part, it’s quite easy to call into Scala code from Java also. There are some rough edges related to working with companion objects and extending methods that throw exceptions. While at first this may look a bit intimidating, once you get the hang of it, using the help of tools like javap, you can quickly begin to intermix Java and Scala. In addition to opening the door for mixing the two languages in enterprise applications, this will greatly help you to use some powerful libraries written in Scala, right from your current Java applications. In the next chapter, you’ll apply what you’ve learned in this book. We’re going to create a small application and along the way pick up a few ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required