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
What is runtime polymorphism or dynamic method dispatch?
What is :: operator in java 8?
Can we have try block without catch block?
What are benefits of java?
Which is faster string or stringbuilder?
How to invoke external process in java.
What are the actions that can occur when a thread enters blocked state?
Is int a class in java?
explain copyonwritearraylist and when do we use copyonwritearraylist?
Is a class subclass of itself?
What are the two environment variables that must be set in order to run any java programs?
What is difference between final and finally in java?
Is ruby built on java?
What is the difference between notify and notifyall method?
Explain the available thread states in a high-level?