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
how can i create an E-exam application on netbeans

Separating your business logic with other functionality such as services, Loggers etc, making classess more cohesive.

WHY WE USE JAVA IN PROGRAMMING INSTEAD OF OTHER PROGRAMMING LANGUAGE

Looking for: responsible, trustworthy, accountable, and knowledgeable CakePHP developer and web designer with great communication skills. I'm seeking great partnership and if th

For your project, you will be designing a payroll system for a company. The company will use the system to generate payroll reports based on different kinds of employees in the com

The flow control statements give you to conditionally execute statements, to repeatedly operate a block of statements, or to just modify the sequential flow of control.

You will be required to create an ADT for a Binary Search Tree (BSTInterface.java). The interface will be implemented as a Binary Search Tree (BST) using a reference based format.

Write a program using local variable Public void someMethod( ) { int x; //local variable System.out.println(x); // compile time error } - Constructor - Doesn't

Complete Back end and Front End Development Project Description: This work is a part of ongoing project. The need is to prepare and integrate the web part of this project.

This is a two part project, one in Alice, and another in Java. You can either zip the files together as one and upload the single zip file, OR upload the separate files. If you dec