Scala Tutorial Scala References

Scala - Tutorial



Scala is a modern multi-paradigm programming language which supports both object-oriented programming and functional programming. Scala source code can be compiled to Java bytecode and run on a Java virtual machine (JVM). Scala provides language interoperability with Java so that libraries written in either language may be referenced directly in Scala or Java code. Scala has been created by Martin Odersky and first version was released in January, 2004.

About Tutorial

This tutorial is intended for students and professionals interested in studying basic and advanced concepts of Scala. This tutorial covers all topics of Scala which includes data types, operators, arrays, strings, control statements, classes, object-oriented programming, closures, collections & pattern matching. We believe in learning by examples therefore each and every topic is explained with lots of examples that makes you learn Scala in a very easy way. Along with this, almost all examples can be executed online which provides better understanding of the language and helps you to learn the language faster. The classical "Hello World" example is mentioned below for the illustration purpose:

//Hello World Example
object MainObject {
  def main(args: Array[String]) {
    println("Hello, world!")  
  }
}

The output of the above code will be:

Hello World!

Prerequisite

Before continuing with this tutorial, you should have basic understanding of Java programming language or any other programming language like C/C++. However, this tutorial is designed in such a way that anyone can start from scratch.