Tue Oct 21, 2008 8:02 pm
Can any one explain me whether the garbage collect a class or interface?how the
System.gc invokes this garbage collector?
Tue Oct 21, 2008 8:03 pm
Classes and interfaces are represented by Class objects. When a class or
interface is no longer used, there will be no references to the Class
objects. This signals the garbage collector to collect unused classes
and interfaces.
System.gc () invokes a thread that is defined by the JVM. I's sole
purpose is to perform "garbage collection".
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.