0 votes
in Scala Constructs by
What is the importance of App in Scala?

1 Answer

0 votes
by

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 madanswer extends App 

{  

println("Hello Scala")  

...