Scala Tutorial

Scala Tutorial

Scala is a modern multi-paradigm programming language designed to express common programming patterns in a concise, elegant, and type-safe way. Scala has been created by Martin Odersky and he released the first version in 2003. Scala smoothly integrates the features of object-oriented and functional languages. This tutorial explains the basics of Scala in a simple and reader-friendly way.


This tutorial has been prepared for beginners to help them understand the basics of Scala in simple and easy steps. After completing this tutorial, you will find yourself at a moderate level of expertise in using Scala from where you can take yourself to next levels.


Scala Programming is based on Java, so if you are aware of Java syntax, then it's pretty easy to learn Scala. Further if you do not have expertise in Java but if you know any other programming language like C, C++ or Python then it will also help in grasping Scala concepts very quickly.

Execute Scala Online

For most of the examples given in this tutorial you will find Try it option, so just make use of this option to execute your Scala programs at the spot and enjoy your learning.

Try following example using Try it option available at the top right corner of the below sample code box −

object HelloWorld {
   def main(args: Array[String]) {
      println("Hello, world!")