What is meant by class loader and how many types are there?

Answer Posted / lucky

Class Loader: Class loder is mainly responsible for loading java class into JVM.

There are 3 types of java class loaders:

1)Bootstrap class loader :loads jdk jars.
2)Extensions class loader : loads java classes from the path
"JAVA_HOME/jre/lib/ext/
3)System class loader : loads the java classes from system class path , class path has been set by the CLASSPATH environment variable.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the different forms of polymorphism?

567


How do you implement singleton class?

516


Difference between concurrent hashmap and hashtable and collections

563


What are the advantages of packages in java?

571


Can we use both this () and super () in a constructor?

550






Which sorting algorithm is in place?

535


What is array size in java?

498


What is the purpose of using javap?

613


How many threads can I run java?

538


How does java enable high performance?

687


What is difference between an object and a class?

608


Is there a jre for java 11?

551


What is the purpose of abstract class?

520


How many characters is 2 bytes?

526


What is the buffer limit?

558