Swipe to navigate through the chapters of this book
One of the main design goals of Scala is running on a JVM and providing interoperability with Java. The need for Scala and Java interoperability arises when you want to use existing Java libraries or framework. Scala code is often used in tandem with large Java programs and frameworks. Even though integration with Java is easy for the most part, we encourage you to use pure Scala as much as possible. When you are working with the Java library or framework, first try to find something equivalent in Scala, and use Java if there’s no equivalent Scala library available.
Please log in to get access to this content
To get access to this content you need the following product:
- Scala and Java Interoperability
- Sequence number
- Chapter number
- Chapter 9