Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

Is garbageCollector a Class or interface?

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?



Re: Is garbageCollector a Class or interface?

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".

Post a reply
  Related Posts  to : Is garbageCollector a Class or interface?
 java abstract class,concrete class and interface     -  
 The difference between an Interface and an Abstract class     -  
 Interface Collection and Class Collection     -  
 Define class helper class to check the method existance     -  
 relationship between the Canvas class and the Graphics class     -  
 Define class inside another class C++     -  
 inner class that is a member of an outer class?     -  
 What is an Interface? !!!!     -  
 java interface example     -  
 List interface     -  

Topic Tags

Java OOP