Wednesday, March 9, 2016

Hello World Program in Scala

Below is the hello world program in Scala

As Scala is very similar to java. Hence people with programming experience can relate the below code to java. Object keyword will create a class HelloWorld and instantiate one object with same name. Main function serves the same purpose as that in java and acts as the starting point for code execution. And println function prints the output.

No comments:

Post a Comment