2015年8月18日

Java-static区域

摘要: 1 class A{ 2 static int a; 3 int b; 4 static{ 5 a++; 6 } 7 A(){ 8 a++; 9 }10 }static{}区域只在class A申明时执行一次。... 阅读全文

posted @ 2015-08-18 15:45 xiaoshan_coding 阅读(188) 评论(0) 推荐(0)

导航