What is classloader?
After a java code is written and compiled it gets saved as .class file. Now if that class needs to be used again then it needs to be loaded into the memory.
The java classloader loads the class into memory.
Java has three types of built-in classloader:
System classloader→This is used to load class from current classpath and can be set when a program is invoked using -cp or -classpath from the command line.
Bootstrap classloader→This is used to load JDK internal classes like java.lang.* package classes, etc.
Extensions classloader→This is used to load classes from JDK external directory. For example, $JAVA_HOME/lib/ext directory
Learn more interview questions here...
Would you like to see your article here on tutorialsinhand. Join Write4Us
program by tutorialsinhand.com
Page Views : 50 Published Date :May 02,2020 Author :rajneesh