摘要: 1、HashCode(); 2、 wait(); 3、 notify(); 4、equals(); 5、getClass(); 6、toString(); 7、clone(); 8、finalize(); 阅读全文
posted @ 2019-03-16 16:55 Uarealoser 阅读(450) 评论(0) 推荐(0)
摘要: java创建对象 的初始化顺序 1、初始化块 初始化块通常写在类的构造方法之前,由花括号括起来,通常包含对成员属性进行初始化的语句; 初始化块分为instance初始化块和static初始化块,初始化块在构造方法执行之前被执行; static初始化块不能访问非static成员,也不能调用非stati 阅读全文
posted @ 2019-03-16 16:41 Uarealoser 阅读(729) 评论(0) 推荐(0)