0% found this document useful (0 votes)
6 views2 pages

Understanding Java ClassLoaders Explained

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Understanding Java ClassLoaders Explained

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Java ClassLoader -> is a part of the JVM -> which used to load .

class files

that dynamically loads Java classes into the Java Virtual Machine.

Loads class files when prog is executed

if any of these classes are not found then it returns


a NoClassDefFoundError or ClassNotFoundException.

BootStrap ClassLoader:

doesn’t have any parent ClassLoader.

also called as the Primordial ClassLoader.

loads classes from the location [Link].

this is used to load core java lib like [Link] file containing fundamental classes from the packages like
[Link] & java .lib

Extension ClassLoader:

child of Bootstrap ClassLoader

used to load optional jar files one which are related to db , serucrity and methoioned in mavaed from
a predefined location

loads the extensions of core java classes from the respective JDK Extension library.

It loads files from jre/lib/ext directory or any other directory pointed by the system property
[Link].

System ClassLoader:

child class of Extension ClassLoader.

used to load classes from appl class path


It loads the Application type classes found in the environment variable CLASSPATH, -classpath or -cp
command line option.

You might also like