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
How does arraylist size increase in java?
Explain the pointers in Java?
What is meant by distributed application? Why are we using that in our application?
What is an example of procedure?
Why can't you declare a class as protected?
What do you understand by the term string pool?
Which object oriented concept is achieved by using overloading and overriding?
What is a char in java?
Why vector is used in java?
Why vector class is used?
Which class is the superclass for every class in java programming?
Which are different kinds of source code?
How to set the permissions to a file in java?
How do you sort in descending order in java using collections sort?
What state does a thread enter when it terminates its processing in java programming?