Praveen Kumar M K wrote:So how does one say "I dont want to use that class anymore, you can garbage collect it"?
A class can be garbage-collected only after the class loader which loaded it is garbage-collected. So this means that first of all you have to create your own class loader; the standard system class loaders are never collected. Then you have it load some classes. Finally you arrange things so that neither those classes nor your class loader have any references, and they can then be collected.