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 are the different types of inheritance in java?

529


Write a program to search a number in the given list of numbers.

625


Is node a data type in java?

493


What is the structure of java?

505


Is double bigger than float?

543






What is appletviewer?

564


Can the interface be final?

574


How will you serialize a singleton class without violating singleton pattern?

1519


What restrictions are placed on method overloading in java programming?

568


Which package is always imported by default?

541


Explain with example the concept of constant variable in java.

626


What is java jit compilers?

558


What is a treeset in java?

542


What is a void method?

513


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

547