方法名前加了关键字static后,会出错?
public  static HelloWorld() {
    num1=91;
   System.out.println("the number is"+num1);
}
与
public   HelloWorld() {
   num1=91;
  System.out.println("the number is"+num1);
}
public  static HelloWorld() {
    num1=91;
   System.out.println("the number is"+num1);
}
与
public   HelloWorld() {
   num1=91;
  System.out.println("the number is"+num1);
}
 
                            2015-11-05
举报