package 静态static的使用有疑问;
class Test {
// 实力变量又叫全局变量
int a;
static int b;
}
public class TestStatic {
public static void main(String[] args) {
Test t = new Test();
Test t1 = new Test();
Test t = new Test();
int a;
t.a = 2;
t.a = 3;
//相当于就近原则
System.out.println(t.a);//3
int b;
t.b = 13;
t.b = 14;
System.out.println(t.b);//14
}
}