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 revision Previous revision
Next revision
Previous revision
dev:crosscompiler:class_initialization [2015/04/06 13:37]
ursgraf [Initialisierung von Objekten]
dev:crosscompiler:class_initialization [2016/02/25 13:33] (current)
Line 50: Line 50:
   }   }
 </​code>​ </​code>​
-In the Bytecode these constructors carry the name /init// and vary in the parameter list. Block 1 and block 2 in the above code block will be combined in //init//.+In the Bytecode these constructors carry the name //init// and vary in the parameter list. Block 1 and block 2 in the above code block will be combined in //init//.
 When creating an object a call to //new// allocates a block on the heap. Next, the constructor of the super class is called (which itself calls its super class constructor). These calls can be found in the Bytecode. When creating an object a call to //new// allocates a block on the heap. Next, the constructor of the super class is called (which itself calls its super class constructor). These calls can be found in the Bytecode.
 Classes might also have instance initializers,​ such as:  Classes might also have instance initializers,​ such as: 
dev/crosscompiler/class_initialization.txt · Last modified: 2016/02/25 13:33 (external edit)