How is instance variable equal 0 although it is not initialized?

后端 未结 0 844
孤街浪徒
孤街浪徒 2021-01-24 08:22
public class Main{

    int i;
    void print(){
        System.out.println(i);
    }

    public static void main(String[] args) {
        new Test().print();

    }
}
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题