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.