摘要: public class Test { public int id; public String name; private static long count; @SuppressWarnings("rawtypes") private final static ThreadLocal ... 阅读全文
posted @ 2015-10-17 21:58 那个豆叫红小豆 阅读(122) 评论(0) 推荐(0) 编辑
摘要: public class StaticShiLi { static int i=1; int j=2; static void m(){ System.out.println(j);报错 } public static void main(String[] args) { // TODO ... 阅读全文
posted @ 2015-10-17 21:53 那个豆叫红小豆 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 当多个类之间有继承关系时,创建子类对象会导致父类初始化块的执行。class base{ int x = 10; void test(){ System.out.println("Base method,x = "+x); }}public class JiCheng extends base{... 阅读全文
posted @ 2015-10-17 21:47 那个豆叫红小豆 阅读(141) 评论(0) 推荐(0) 编辑
摘要: class InitializeBlockClass {{ field=200;} public int field=100; public InitializeBlockClass (int value){ this.field=value;} public Initi... 阅读全文
posted @ 2015-10-17 21:33 那个豆叫红小豆 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 如果说最少三个人才可以构成一个团队,是因为其具备了团队的一些基本特性:主从、监督和责任。但是要明白,在这个团队中,功劳最大能力最强的人并非就是领导者,而是接受表彰的角色。作为一个领导者,责任成为最基本的素质,就像项目的失败,项目经理难辞其咎。那么,项目的失败到底是因为什么?——与项目经理的经验直接... 阅读全文
posted @ 2015-10-17 16:44 那个豆叫红小豆 阅读(110) 评论(0) 推荐(0) 编辑