Why can a class not be unloaded without unloading the classloader?

Posted by Everyone on Stack Overflow See other posts from Stack Overflow or by Everyone
Published on 2010-03-31T07:58:40Z Indexed on 2010/03/31 8:03 UTC
Read the original article Hit count: 265

Filed under:
|

The answer to 'unloading classes in java' says -

"The only way that a Class can be unloaded is if the Classloader used is garbage collected." I took a look at the JLS but couldn't understand it

Why is this the case?

© Stack Overflow or respective owner

Related posts about java

Related posts about classloader