日期:2014-05-20 浏览次数:20923 次
public class T {
static int $i;
}
public static void myfun() {
this.i;
}
public class T {
static int $i;
}
public static void myfun() {
T.i;
}
public class Test3 {
public static int $i=5;
public int k;
public Test3(int k) {
this.k=k;
Test3.$i=k;
}
public static void main(String[] args) {
Test3 test1 = new Test3(10);
Test3 test2 = new Test3(5);
System.out.println(test1.k+" "+test1.$i);
System.out.println(test2.k+" "+test2.$i);
}
}