public class A{
private int i = giveMe();
private int j = 10;
private int giveMe(){
return j;
}
public static void main(String args[]){
System.out.println(new A().i)
}
}
这道题的为什么控制台会输出0呢?
private int i = giveMe();
private int j = 10;
private int giveMe(){
return j;
}
public static void main(String args[]){
System.out.println(new A().i)
}
}
这道题的为什么控制台会输出0呢?