What is Java Classloader?



What is Java Classloader?..

Answer / 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

More Core Java Interview Questions

What is final variable?

0 Answers  


What is e java?

0 Answers  


public class Garbage { int a=0; public void add() { int c=10+20; System.out.println(c); System.out.println(a); } public static void main(String args[]) { Garbage obj=new Garbage(); System.gc(); System.out.println("Garbage Collected"); obj.add(); } } Above is a code in java used for garbage collection. object obj has been created for the class Garbage and system.gc method is called. Then using that object add method is called.System.gc method if called the obj should be garbage collected?

6 Answers  


What is the purpose of format function?

0 Answers  


Is set thread safe java?

0 Answers  






Can private class be inherited in java?

0 Answers  


what are the design patterns in struts?

1 Answers  


What is the effect of keeping a constructor private?

0 Answers  


Can we restart a thread already started in java?

0 Answers  


Why java is free from garbage values??

4 Answers  


When should we create our own custom exception classes?

0 Answers  


How many types of exception can occur in a java program?

0 Answers  


Categories