Scala and Java Interoperability
One of the main design goals of Scala is to run on a JVM and provide interoperability with Java. The need for Scala and Java interoperabilityJava interoperabilitydefinition arises when you want to use existing Java libraries or frameworks. Scala code is often used in tandem with large Java programs...
Saved in:
Published in | Beginning Scala 3 pp. 219 - 236 |
---|---|
Main Authors | , , |
Format | Book Chapter |
Language | English |
Published |
United States
Apress L. P
2022
Apress |
Online Access | Get full text |
Cover
Loading…
Summary: | One of the main design goals of Scala is to run on a JVM and provide interoperability with Java. The need for Scala and Java interoperabilityJava interoperabilitydefinition arises when you want to use existing Java libraries or frameworks. 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 a Java library or framework, first try to find something equivalent in Scala. Use Java if there’s no equivalent Scala library available. |
---|---|
ISBN: | 9781484274217 1484274210 |
DOI: | 10.1007/978-1-4842-7422-4_9 |