Java.lang.ClassLoader Class

Java ClassLoader Class

The abstract ClassLoader class is provided by the Java.lang package. A class loader is an entity that is in charge of class loading. Security administrators commonly utilise class loaders to specify security domains. So let us know about Java.lang.ClassLoader.

Class declaration

The declaration of java.lang.ClassLoader class is:

public abstract class ClassLoader
  extends Object

Class Constructors

S.N Constructors & Description
1. protected ClassLoader()
Creates a new class loader using the ClassLoader returned by the method getSystemClassLoader() as the parent class loader.
2. protected ClassLoader(ClassLoader parent)
Creates a new class loader using the specified parent class loader for delegation.

java.lang.ClassLoader Methods

The following methods are available in the java.lang.ClassLoader class:

Member Methods

S.N Methods & Description
1. void clearAssertionStatus()
Sets the default assertion status for this class loader to false and discards any package defaults or class assertion status settings associated with the class loader.
2. ClassLoader getParent()
Returns the parent class loader for delegation.


Methods inherited

This class inherits the methods of the following class:

  • java.lang.Object


To open the online compiler click here.

Also Read: Java – Strings

Leave a Reply

Your email address will not be published. Required fields are marked *