Java.lang.ClassLoader Class
Java ClassLoader Class
Java.lang package provides a ClassLoader class which is an abstract class. A class loader is an object that is responsible for loading classes. Class loaders may typically be used by security managers to indicate security domains.
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 java.lang.ClassLoader class has a number of methods which are listed below:
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 following class:
- java.lang.Object