Answer Posted / aks
In a Java Virtual Machine (JVM), each and every class is
loaded by some instance of a java.lang.ClassLoader. The
ClassLoader class is located in the java.lang package and
you can extend it to add your own functionality to class
loading.
Since Java 1.2 we have three types of class loaders:
Class loaders created automatically by the JVM
Program defined class loaders
Context class loaders.
There are three Class loaders in first group:
bootstrap class loader - loads classes
from ../jre/lib/rt.jar It is the "root" in the class loader
hierarchy.
extensions class loader - loads classes
from ../jre/lib/ext/*.jar
system class loader - it is responsible for loading in the
application, as well as for loading classes and resources
in the application's CLASSPATH.
Second group includes:
system class loader - parent class loader by default
additional parent class loader can be specified explicitly
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Can you create an object of an abstract class?
What is the type of lambda expression?
Which types of exceptions are caught at compile time?
Which variables are stored in heap?
What is consumer in java?
Why destructor is not used in java?
Write code to implement bubble sort in java?
What is meant by polymorphism?
Why pointers are not used in java?
What is struts in java?
What is busy spin, and why should you use it?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
Write a java program to print fibonacci series?
Explain about OOPS concepts and fundamentals.
What is meant by flickering?