摘要: 双亲委派 前提:类的生命周期:类的加载->连接(验证,准备,解析)->初始化->使用->类的卸载 class MyObject{ static int num1 = 100; static int num2 = 100;//在类的连接状态时 会先给num2 赋值0,然后在赋值阶段给赋值为100 pu 阅读全文
posted @ 2020-12-07 11:35 Joyce502 阅读(73) 评论(0) 推荐(0)