What is Java Classloader?

Answer Posted / javamasque

Java Classloader is part of Java runtime environment which loads class on demand (lazy loading) into JVM (Java Virtual Machine) not only from local file system but from remote system or web.

There are 3 types of Classloader.
i. Bootstrap Classloader: Loads core java API file rt.jar from <JAVA_HOME/jre/lib> folder.
ii. Extension Classloader: Loads jar files from <JAVA_HOME/jre/lib/ext> folder.
iii. System/Application Classloader: Loads jar files from path specified in environment variable as CLASSPATH.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is floor in java?

552


Explain the difference between treeset and treemap in java?

520


Why are variables important in research?

548


What is the exact difference in between unicast and multicast object? Where we will use?

557


Can a static block throw exception?

649






What is a variable and constant?

543


What is a type parameter in java?

526


does java support pointers?

558


Does string is thread-safe in java?

586


What are the different types of methodologies?

526


Which method returns the length of a string?

562


What does exp mean in math?

528


What are latest features introduced with java 8?

584


What are examples of modifiers?

506


Define iterator and methods in iterator?

543