© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
D. Pollak et al.Beginning Scala 3https://doi.org/10.1007/978-1-4842-7422-4_9

9. Scala and Java Interoperability

David Pollak1  , Vishal Layka2 and Andres Sacco3
(1)
San Francisco, CA, USA
(2)
Bruxelles, Belgium
(3)
Ciudad Autonoma de Buenos Aires, Argentina
 

This chapter describes how Scala is translated to Java and the use of Java annotations in the Scala framework. The goal of this chapter is to show you how easily you can integrate Scala with Java. You’ll also learn how Scala annotations help in integration, such as when generating JavaBean-style getters and setters.

Scala at a Glance

One of the main design goals of Scala is to run on a JVM and provide interoperability ...

Get Beginning Scala 3: A Functional and Object-Oriented Java Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.