View Single Post
  #4 (permalink)  
Old 08-03-2007, 05:24 PM
henry_78 henry_78 is offline
Member
 
Join Date: Aug 2007
Posts: 47
henry_78 is on a distinguished road
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.
Reply With Quote