Scala / Scala interview questions
What is a Main method in Scala?
The main method is an entry point of a program. The Java Virtual Machine requires a main method to be named main and take one argument, an array of strings that accepts command line arguments.
object MyMain { def main(args: Array[String]): Unit = println("Hello world!") }
More Related questions...