Content deleted Content added
→Program structure: clarified definition of "application"; mentioning methods is redundant, if they are to be mentioned, we'd need to include fields |
→Reference types: "soon" is ambiguous and probably wrong in general, the scheduling of the garbage collector is not accessible to Java programs |
||
Line 842:
==Reference types==
Reference types include class types, interface types, and array types. When the constructor is called an object is created on the heap and a reference is assigned to the variable. When a variable of an object gets out of scope the reference is broken and when there are no references left the object gets marked as garbage. The garbage collector will then
A reference variable is <code>null</code> when it does not reference any object.
|