This section describes what is java.lang.ClassLoader class - A built-in abstract class that represents ClassLoaders used in JRE to load dynamically Java classes into the JVM.
What Is java.lang.ClassLoader Class?
ClassLoader is a built-in abstract class that represents ClassLoaders used in
Java Runtime Environment (JRE) to load dynamically Java classes
into the Java Virtual Machine (JVM).
If you want to create your own ClassLoader to your own classes
in some special ways, you should define a concrete subclass of java.lang.ClassLoader.
java.lang.ClassLoader class offers these main methods:
ClassLoader getParent() - Returns the parent ClassLoader of delegation tree.
static ClassLoader getSystemClassLoader() - Returns the system ClassLoader.
public Class<?> loadClass(String name) - Loads the class with the specified binary name.
URL getResource(String name) - Finds the resource with the given name.
Enumeration<URL> getResources(String name) - Finds all the resources with the given name.
static URL getSystemResource(String name) - Find a resource of the specified name from the search path used to load classes.
static Enumeration<URL> getSystemResources(String name) - Finds all resources of the specified name from the search path used to load classes.