Google News
logo
Scala - Interview Questions
What is the importance of App in Scala?
A helper class, named App, is provided by Scala that provides the main method and its members together. App trait allows Objects to be turned into executable programs quickly.

The App class in Scala can be extended instead of writing your own main method. This way you can produce concise and scalable applications.

Example :
object FreeTimeLearn extends App
{  
println("Hello Scala")  
}​
 
Advertisement