import java.util.*;
public class VolatileTest {
public static void main(String[] args) {
Inner inner = new Inner();
inner.show1();
inner.show2();
}
}
class Inner{
int a;
public void show1(){
System.out.println(a);
}
public void show2(){
int b = 0; // 不初始化就不可以使用
System.out.println(b);
}
}
标签:初始化,需要,变量,void,inner,public,Inner
From: https://www.cnblogs.com/zhongshu/p/16588469.html