Java class loaders ,dynamic class loading, JAVA Programming

Classes are attached into the JVM as they are referenced by name in a class that is already running in the JVM. So, how is the staring class loaded? The very first class is especially loaded with the help of static main( ) method defined in your class. All the subsequently loaded classes are executed by the classes, which are already loaded and running. A class loader provides a namespace. All JVMs add at least one class loader that is embedded within the JVM called the primordial (or bootstrap) class loader.  Non-primordial classes loaders are the JVM which has hooks in it to allow user declare class loaders to be used in place of primordial class loader. Let us look at the class loaders prepared by the JVM.

 

664_Untitled.png

 

Class loaders in the hierarchy can never reload the class again. Hence difference is maintained. Classes loaded by a child class loader have visibility into classes loaded by its parent classes up the hierarchy but the reverse is not true illustrate in the above diagram.

 

Posted Date: 7/25/2012 12:28:34 AM | Location : United States







Related Discussions:- Java class loaders ,dynamic class loading, Assignment Help, Ask Question on Java class loaders ,dynamic class loading, Get Answer, Expert's Help, Java class loaders ,dynamic class loading Discussions

Write discussion on Java class loaders ,dynamic class loading
Your posts are moderated
Related Questions
The report: Your report must describe the requirements of the application, outline the design of the solution, and provide a testing procedure to prove the application works. In yo

write a program that count the number of occurences of string in the n-th padovan string p(n)   program in java // aakash , suraj , prem sasi kumar kamaraj college progr

Explain the term- Comparing Strings For comparing Strings never use == operator, use equals method of String class. - == operator compares addresses (shallow comparison) whi

Write a program to perform multiplication and division in java? Of course Java could also do multiplication and division. Because most keyboards don't have the times and divisi

Write a program that uses one of the Map classes to implement a contact list. Contact information should include first name, last name, a phone number and an email address. The lis

Need Mahjong puzzle game I want someone to make this game ( Mahjong puzzle game) for me in Android ONLY. If you have high level programming knowledge in Android then please b

Requested figure handle in use by another object, how do i fix this?

What is the use of UnicastRemoteObject in RMI? Ans) The UnicastRemoteObject class gives support for point-to-point active object references using TCP streams. Objects that need

write a program to find the area under the curve y=f(x) between x=a and x=b,integrate y=f(x) between the limits of a and b.   #include float start_point,

Difference between the File and Random Access File classes? Ans) The File class encapsulates the files and directories of the local file system. The Random Access File class giv