deep

a Cross Development Platform for Java

User Tools

Site Tools


dev:crosscompiler:class_initialization

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:crosscompiler:class_initialization [2015/04/06 13:37] – [Initialization of Objects] ursgrafdev:crosscompiler:class_initialization [2021/05/10 19:52] (current) ursgraf
Line 14: Line 14:
 </code> </code>
 ==== When will a class be initialized? ==== ==== When will a class be initialized? ====
-On the host we have a situation like this. The class constructor of a top-level class will be called first. Then follows the method //main//. The class constructor of an imported class will be called when:+On the host we have a situation as follows. The class constructor of a top-level class will be called first. Then follows the method //main//. The class constructor of an imported class will be called when:
   * accessing a static field of an imported class   * accessing a static field of an imported class
   * calling a static method of an imported class   * calling a static method of an imported class
dev/crosscompiler/class_initialization.txt · Last modified: 2021/05/10 19:52 by ursgraf