legal main method signature in java

前端 未结 8 1016
甜味超标
甜味超标 2020-12-01 21:44
class NewClass{
public static void main(String a){
    System.out.print(\"Hello\");
}
}

When I\'m trying to execute above code, then it shows an er

8条回答
  •  粉色の甜心
    2020-12-01 22:15

    public static void main(String a[]) is the main entry point signature for a typical Java program. So you should get on with this method signature.

提交回复
热议问题