使用Java的静态方法主要有什么实际区别吗?

Fra*_*ank 0 java static program-entry-point

如果我有以下Java类:

public class MyClass
{
  ...

  public static void main(String[] args) 
  {
   ...
  }
}
Run Code Online (Sandbox Code Playgroud)

如果我以下面两种方式称呼它,有什么实际区别吗?

[1] new Stock_Image_Scanner().main(null);
[2] Stock_Image_Scanner.main(null);
Run Code Online (Sandbox Code Playgroud)

kg_*_*sYy 6

在第一个中,构造函数被执行.在第二个它没有.