如下面代码
Java代码
public class Test
{
public static int a = 2;
public static void main(String[] args)
Test t = new Test();
t = null;
System.out.println(t.a);
}
输出为:
2
下面的代码
public int b = 3;