Home  |   STIU  |   WOW  |   SCJP  |   SCDJWS   |   JEE FAQ  |   About US  |  

FAQ
  Java FAQ
  JSP FAQ
  Servlet FAQ
 

Advertisement

XyzWs Java FAQ:
Can classes and interfaces be unloaded?


Printer-friendly version Printer-friendly version | Send this 
article to a friend Mail this to a friend


Previous Next vertical dots separating previous/next from contents/index/pdf Contents
Advertisement
Can classes and interfaces be unloaded?

Can classes and interfaces be unloaded?

An implementation of the Java programming language may unload classes. A class or interface may be unloaded if and only if its defining class loader may be reclaimed by the garbage collector as discussed in JLS 12.6.1.

It is not true that any class may be unloaded when none of it's instances and class objects that represent this class are reachable. Classes and interfaces loaded by the bootstrap loader may not be unloaded.

For more information, please see "12.7 Unloading of Classes and Interfaces" in Java Language Specification 3rd Edition (JLS).

 


Previous Next vertical dots separating previous/next from contents/index/pdf Contents

Support  | Feedback  | Help