title: Difference between using App trait and main method in scala
body: <p>What is the difference between </p>
  
  <pre><code>object Application extends App {
     println("Hello World")
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>object Application {
      def main(args: Array[String]): Unit = {
          println("Hello World");
      }
  }
  </code></pre>