Hi Cindy,
I went thru the link and there it is mentioned
it follows that one must not unload a class while its loader is still reachable.
.
1. So can a user unload a class himself (r there any methods to unload a class) ?
However, if a class is unloaded while its loader is reachable, it may be reloaded
2. Does it mean classes are loaded and reloaded by JVM at its own whim for optimization. Basically I wanted to cater to the problem of
Static variables losing its state when classes r reloaded. When should I provide explicit code to ensure that state is not lost ?