Tribal Fusion Interview Question
Software Engineer / DevelopersCountry: India
Interview Type: Phone Interview
Bootstrap Class Loader
Bootstrap class loader loads java’s core classes like java.lang, java.util etc. These are classes that are part of java runtime environment. Bootstrap class loader is native implementation and so they may differ across different JVMs.
Extensions Class Loader
JAVA_HOME/jre/lib/ext contains jar packages that are extensions of standard core java classes. Extensions class loader loads classes from this ext folder. Using the system environment propery java.ext.dirs you can add ‘ext’ folders and jar files to be loaded using extensions class loader.
System Class Loader
Java classes that are available in the java classpath are loaded using System class loader.
The JRE loads classes into the JVM, most of the time. There are also custom class loaders for many online applications to allow instantiation of an object within the same namespace as a client or to instantiate an object given as reply to an HTTP request.
- C++ Lion September 18, 2011I do not know many class loaders.