|
Answer» The Java Virtual Machine's CLASSLOADER subsystem is in charge of loading class FILES. When we execute a Java application, the classloader loads it first. The following are Java's three built-in classloaders: - ClassLoader in Bootstrap: ClassLoader is the superclass of Extension classloader, which is the DEFAULT classloader in Bootstrap. It loads the rt.jar file, which contains all Java Standard Edition class files, including java.lang, java.net, java.util, java.io, and java.sql.
- Extension ClassLoader: This is the PARENT of SYSTEM ClassLoader and the child of Bootstrap ClassLoader. The $JAVA_HOME/jre/lib/ext directory's jar files are loaded.
- System or Application ClassLoader: System or Application ClassLoader is the child classloader of Extension ClassLoader. The classpath is used to load the class files. By default, the classpath is set to the current directory. To change the classpath, use the "-cp" or "-classpath" switches.
|