1 public class Day05 2 { 3 int t = 2; 4 5 public static void main(String[] args) 6 { 7 int t = 1; 8 System.out.println(t); 9 System.out.println(new Day05().t); 10 } 11 12 }
实例变量和局部变量的访问
原文:http://www.cnblogs.com/linson0116/p/3513149.html