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

Full description

Saved in:
Bibliographic Details
Published inBeginning Scala 3 pp. 219 - 236
Main Authors Layka, Vishal, Pollak, David, Sacco, Andres
Format Book Chapter
LanguageEnglish
Published United States Apress L. P 2022
Apress
Online AccessGet full text

Cover

Loading…
More Information
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