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
A MapMessage carries name-value pair as its payload. Therefore its payload is same to the java.util.Properties object of Java. The values can be Java primitives or their wrappers

For an assignment I need to write an array program to go along with an instance variable. I keep getting the no main class error when I run my program.

How memory allocated for a object

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

Explain the term - Garbage Collection Java  performs  garbage  collection  and  eliminates  the  need  to  free  objects  explicitly.  When an object  has  no references   to

Why is an Interface be able to extend more than one Interface but a Class can't extend more than one Class? Basically Java doesn't permit multiple inheritances, so a Class is r

Write JavaScript code to convert the number 236.2363611111556 into currency format and JavaScript statement to show output? Var input_amt = 236.2363611111556 ; mid_data = input

Project Description: I want to build a camera application for android. By default android will add metadata for the image, for e.g.  Date, time, resolution, gps tag etc..In this

The SudCell Class A single cell in a Sudoku must clearly represent a number from 1 to 9 .  But in a solver context, we need much more.  It isn't enough to say "this c

Assignment Your task in this assignment is to develop a Java program that can communicate with a real SMTP email server for sending emails. It should have a graphical user inter