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

Explain what access modifiers can be used for variables?

820


what are the methods in object?

878


Why main method is static in java?

847


Can list have duplicates in java?

710


What do you understand by garbage collection in Java? Can it be forced to run?

766


What is the difference between pass by reference and pass by pointer?

722


What is the static import?

831


Discuss 2D arrays.

824


What is meant by oops concept in java?

749


What does index mean in java?

751


How to pass arraylist to stored procedure in java?

785


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

780


What is module in oop?

781


Difference between string, stringbuffer and stringbuilder?

824


Explain about arraylist?

791