Java class loader: Difference between revisions

Content deleted Content added
Line 10:
In the [[Java language]], libraries are typically packaged in [[jar-file|Jar files]]. Libraries can contain objects of different types. The most important type of object contained in a Jar file is a [[Java class]]. A class can be thought of as a named unit of code. The class loader is responsible for locating libraries, reading their contents, and loading the classes contained within the libraries. This loading is typically done "on demand", in that it does not occur until the class is actually used by the program. A class with a given name can only be loaded [[Once and only once|once]] by a given classloader.
 
 
==Class loading process==
Each Java class must be loaded by a class loader.<ref name="Christudas">{{cite web
|url=http://www.onjava.com/pub/a/onjava/2005/01/26/classloading.html