Write code that makes proper use of the finalization mechanism to free resources before an object is garbage collected. Distinguish between static and instance initializer expressions and initializer blocks, and how they are used for object initialization and class initialization. State the phases involved in initializing the object state when an object is created using the new operator.
|