## Uses of Class
java.lang.ClassLoader

- Packages that use ClassLoader
  Package | Description
  --- | ---
  java.lang |
  java.lang.invoke |
  java.lang.reflect | Provides classes and interfaces for obtaining reflective information about classes and objects.
  java.util |

- - ### Uses of ClassLoader in java.lang

    Methods in java.lang that return ClassLoader
    Modifier and Type | Method and Description
    --- | ---
    `ClassLoader` | Class.`getClassLoader()` Returns the class loader for the class.
    `ClassLoader` | Thread.`getContextClassLoader()` Returns the context ClassLoader for this Thread.
    `ClassLoader` | ClassLoader.`getParent()` Returns the parent class loader for delegation.
    `static ClassLoader` | ClassLoader.`getSystemClassLoader()` Returns the system class loader for delegation.

    Methods in java.lang with parameters of type ClassLoader
    Modifier and Type | Method and Description
    --- | ---
    `static Class<?>` | Class.`forName(String name, boolean initialize, ClassLoader loader)` Returns the `Class` object associated with the class or interface with the given string name, using the given class loader.
    `void` | Thread.`setContextClassLoader(ClassLoader cl)` Sets the context ClassLoader for this Thread.

    Constructors in java.lang with parameters of type ClassLoader
    Constructor and Description
    `ClassLoader(ClassLoader parent)` Creates a new class loader using the specified parent class loader for delegation.

  - ### Uses of ClassLoader in java.lang.invoke

    Methods in java.lang.invoke with parameters of type ClassLoader
    Modifier and Type | Method and Description
    --- | ---
    `static MethodType` | MethodType.`fromMethodDescriptorString(String descriptor, ClassLoader loader)` Finds or creates an instance of a method type, given the spelling of its bytecode descriptor.

  - ### Uses of ClassLoader in java.lang.reflect

    Methods in java.lang.reflect with parameters of type ClassLoader
    Modifier and Type | Method and Description
    --- | ---
    `static Class<?>` | Proxy.`getProxyClass(ClassLoader loader, Class<?>... interfaces)` Returns the `java.lang.Class` object for a proxy class given a class loader and an array of interfaces.
    `static Object` | Proxy.`newProxyInstance(ClassLoader loader, Class<?>[] interfaces, InvocationHandler h)` Returns an instance of a proxy class for the specified interfaces that dispatches method invocations to the specified invocation handler.

  - ### Uses of ClassLoader in java.util

    Methods in java.util with parameters of type ClassLoader
    Modifier and Type | Method and Description
    --- | ---
    `static <S> ServiceLoader<S>` | ServiceLoader.`load(Class<S> service, ClassLoader loader)` Creates a new service loader for the given service type and class loader.

Copyright © 2025 API Design. All Rights Reserved.