|
When u do Systm.exit(0) u terminate the whole virtual machine.
the system.exit(n) --> calls another method in the class System.exit(n) method.
The Runtime.exit(n) method when it is closing the vitual machine , one of its operations is to call all the uninvocaed finalize() methods.
The finalize method free the memory of an object (make it available to be reused).
From my point of view i think u will need to overwrite this method very rarely...only in some precise situations..Bye.
|