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
For this Assignment, submit the following program: Create an application for an animal-fur trimming service. The business is open 15 weeks of the year, from April through July. The

What is the difference among session scope and request scope when saving formbean? Ans) When the scope is request, the values of formbean would be there for the current request.

What is Object Oriented Programming explain with an example? In Java everything is an object or a class (or a piece of one or a collection of various). Objects send messages t

Define testing with respect to programming? Testing is the process through that we try to determine the presence defects in a program. Testing is an significant step in soft

Explain term Literals in java? Literals are pieces of Java source code which mean exactly what they say. For example "Hello World!" is a String literal and its meaning is the w

I am requiring webcam software integrated into my site I have website and I am wanting webcam software integrated into my site the company I have found doesn't offer support in

To load a text-file, read it line by line, and return the total number of alphanumeric tokens it contains and skip over the comments and double-quoted strings in the text-file whil

Computer application and program. Project Description: I require a project done. It is a computer desktop application program. It is not very hard. Skills required: Any

Can we use the constructor, instead of init(), to initialize servlet? Ans) Yes. Of course you can use the constructor instead of init(). There's nothing to stop you. But you sho

Explain the Coordinate System? Java uses the standard, two-dimensional, computer graphics coordinate system. The first visible pixel in the upper left-hand corner of the applet