实例变量和局部变量的访问

时间:2014-01-14 21:24:11   收藏:0   阅读:559
bubuko.com,布布扣
 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 }
bubuko.com,布布扣

原文:http://www.cnblogs.com/linson0116/p/3513149.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!