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 more techniques.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.12.151.153