أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
1.BootStrap ClassLoader
2.Extensions ClassLoader
3.System ClassLoader
The Java Classloader is a part of the Java Runtime Environment that dynamically loads Java classes into the JVM, Usually classes are only loaded on demand.
When the JVM is started, three class loaders are used:
Source : wikipedia
Copied:
When the JVM is started, three class loaders are used:
The bootstrap class loader loads the core Java libraries located in the <JAVA_HOME>/jre/lib directory. This class loader, which is part of the core JVM, is written in native code.
The extensions class loader loads the code in the extensions directories (<JAVA_HOME>/jre/lib/ext, or any other directory specified by the java.ext.dirs system property). It is implemented by the sun.misc.Launcher$ExtClassLoader class.
The system class loader loads code found on java.class.path, which maps to the CLASSPATH environment variable. This is implemented by the sun.misc.Launcher$AppClassLoaderclass.
Reflection Api, some lib give you facility to deal with classes not loaded yet with its name, and give you ability to create object of it or call static method from these classes.