Why do we need app in scala?
Answer / Lokesh Nath Sinha
In Scala, App is a special class that provides an entry point to the application. It defines main(), which is executed when the program runs. When you create a new Scala project using sbt (Scala Build Tool), it generates a default build.sbt file and a main.scala file containing an App object.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is this in scala?
What is the queue in the scala collection?
What do you mean by implicit parameters?
What is string in scala?
What is an array in scala?
What is an Higher-Order Function (HOF)?
What is case object?
What does listmap in scala?
How do you prove that by default, Case Object is Serializable and Normal Object is not?
What is a closure in Scala?
What is finally in scala?
How do we make a call to a private primary constructor in scala?