摘要
本文从教学角度对Java对象初始化顺序进行了实证分析,给出了JVM在执行过程中的"礼让"原则,最后还针对继承关系中构造函数的调用规则给出了更为简便和高效的记忆方法。
This paper analyzes the initialization sequence of Java objects from the angle of teaching, and points out the "comity" principle in JVM execution. Finally, some better memory methods are given about the calling rules of constructor in inheritance relationship.
出处
《襄阳职业技术学院学报》
2014年第2期121-123,共3页
Journal of Xiangyang Polytechnic
关键词
初始化顺序
“礼让”原则
继承
构造函数
Initialization order
"Comity" principle
Inheritance
Constructor