## Uses of Class
java.lang.reflect.Constructor

- Packages that use Constructor
  Package | Description
  --- | ---
  java.lang |
  java.lang.invoke |

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

    Methods in java.lang that return Constructor
    Modifier and Type | Method and Description
    --- | ---
    `Constructor<T>` | Class.`getConstructor(Class<?>... parameterTypes)` Returns a `Constructor` object that reflects the specified public constructor of the class represented by this `Class` object.
    `Constructor<?>[]` | Class.`getConstructors()` Returns an array containing `Constructor` objects reflecting all the public constructors of the class represented by this `Class` object.
    `Constructor<T>` | Class.`getDeclaredConstructor(Class<?>... parameterTypes)` Returns a `Constructor` object that reflects the specified constructor of the class or interface represented by this `Class` object.
    `Constructor<?>[]` | Class.`getDeclaredConstructors()` Returns an array of `Constructor` objects reflecting all the constructors declared by the class represented by this `Class` object.

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

    Methods in java.lang.invoke with parameters of type Constructor
    Modifier and Type | Method and Description
    --- | ---
    `MethodHandle` | MethodHandles.Lookup.`unreflectConstructor(Constructor<?> c)` Produces a method handle for a reflected constructor.

Copyright © 2025 API Design. All Rights Reserved.