Java class loaders: What are class loaders?

What are class loaders?

The class loader describes the behavior of converting a named class into the bits responsible for implementing that class.

Class loaders eradicate the JREs need to know anything about files and file systems when running Java programs.

A class loader creates a flat name space of class bodies that are referenced by a string name and are written as:
Class r = loadClass(String className, boolean resolveIt);

Describe the purpose of class loaders in Java.

A class loader describes the process of converting a named class into its equivalent binary form for execution. Class loaders loads classes into JVM at runtime. The classes are loaded into JVM by some instances of a java.lang.ClassLoader class. A class loader creates a flat naming space for body of a class that is referenced by a string name to uniquely identify a class implementation.
Difference between static and dynamic class loading.
Java static and dynamic class - Dynamic class loading is achieved through Run time type identification. Also called as reflection...
Java Comparator Interface: What is the purpose of Comparator Interface?
Java Comparator Interface - Comparators can be used to control the order of certain data structures and collection of objets too...
Java autoboxing and unboxing - Explain autoboxing and unboxing.
Java autoboxing and unboxing - Explain autoboxing and unboxing, What is Auto boxing and unboxing?...
Post your comment