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
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
what is synchronization and why is it important? : Java thread
What happens if we don’t override run method ?
What are advantages of using Java?s layout managers than windowing systems?
What is the difference between java applets and applications?
What is stringwriter?
What is the preferred size of a component in java programming?
What is the default value of the local variables?
What is int short for?
What is a finally block?
Compare overloading and overriding?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What happens if an exception is throws from an object's destructor?
Compare java and python.
Explain listiterator and methods in listiterator?