title: When and how are classes garbage collected in Java?
body: <p>I asked a question about Garbage Collection in Java in <a href="https://stackoverflow.com/questions/2431720/how-does-garbage-collection-in-java-work">this topic</a>. 
  But the answer I got, gave me another question. </p>
  
  <p>Someone mentioned that classes can be collected by the garbage collector too. 
  Is this true? </p>
  
  <p>And if it is true, how does this work? </p>