0 votes
in Scala Constructs by
Why do we need App in Scala?

1 Answer

0 votes
by

App is a helper class that holds the main method and its Members together. The App trait can be used to quickly turn Objects into Executable programs. We can have our classes extend App to render the executable code.

object Madanswer extends App{

     println("Hello World")

   }

Related questions

0 votes
asked Sep 10, 2022 in Scala Constructs by Robin
0 votes
asked Aug 3, 2023 in Kubernetes K8s by SakshiSharma
...