Appendix     C

Introduction to Scala

Scala seamlessly integrates object-oriented and functional programming. Scala is a statically typed language that was conceived in 2001 by Martin Odersky, who also wrote the Java reference compiler and coauthored Java generics. Scala compiles to byte code for the Java Virtual Machine (JVM), making it platform independent. That also means that from a Scala program you can use existing Java libraries, and vice versa.

Getting Started with Scala

You can download Scala from www.scala-lang.org/download/. This Scala software distribution can be installed on any Unix-like or Windows system. It requires the Java runtime version 1.6 or newer.

>scala  -version
Scala code runner version 2.10.3 -- Copyright 2002-2013, ...

Get Learn Java for Web Development: Modern Java Web Development 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.