为什么主要声明为公共和静态?
public static void main(String arg[])
{}
Run Code Online (Sandbox Code Playgroud)
根据java中的ans
"The method is static because otherwise there would be ambiguity: which constructor should be called?"
Run Code Online (Sandbox Code Playgroud)