Skip to main content

Scala & Java Interoperability

  • Chapter
  • First Online:
  • 118k Accesses

Abstract

In this chapter, we will look at the interoperation of Java and Scala. Both Java and Scala are JVM byte code languages. That is, they both compile to the byte code language that is understood by the JVM. The byte code language of the JVM was originally designed to be the compiled form of Java and was what the Java Virtual Machine executed. However, things have evolved such that today the JVM is a virtual environment for executing byte code languages. In fact, there are now several languages that can be compiled to JVM byte codes including Java, Groovy, Clojure, Jruby, Jython, JavaScript, Ada, Pascal as well as Scala. A common term used for these languages is that they are all byte code languages.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   54.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to John Hunt .

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer International Publishing AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Hunt, J. (2018). Scala & Java Interoperability. In: A Beginner's Guide to Scala, Object Orientation and Functional Programming. Springer, Cham. https://doi.org/10.1007/978-3-319-75771-1_44

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-75771-1_44

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-75770-4

  • Online ISBN: 978-3-319-75771-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics