## Uses of Class
java.lang.NoSuchMethodException

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

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

    Methods in java.lang that throw NoSuchMethodException
    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<T>` | Class.`getDeclaredConstructor(Class<?>... parameterTypes)` Returns a `Constructor` object that reflects the specified constructor of the class or interface represented by this `Class` object.
    `Method` | Class.`getDeclaredMethod(String name, Class<?>... parameterTypes)` Bck2Brwsr emulation can only seek public methods, otherwise it throws a `SecurityException`.
    `Method` | Class.`getMethod(String name, Class<?>... parameterTypes)` Returns a `Method` object that reflects the specified public member method of the class or interface represented by this `Class` object.

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

    Methods in java.lang.invoke that throw NoSuchMethodException
    Modifier and Type | Method and Description
    --- | ---
    `MethodHandle` | MethodHandles.Lookup.`bind(Object receiver, String name, MethodType type)` Produces an early-bound method handle for a non-static method.
    `MethodHandle` | MethodHandles.Lookup.`findConstructor(Class<?> refc, MethodType type)` Produces a method handle which creates an object and initializes it, using the constructor of the specified type.
    `MethodHandle` | MethodHandles.Lookup.`findSpecial(Class<?> refc, String name, MethodType type, Class<?> specialCaller)` Produces an early-bound method handle for a virtual method.
    `MethodHandle` | MethodHandles.Lookup.`findStatic(Class<?> refc, String name, MethodType type)` Produces a method handle for a static method.
    `MethodHandle` | MethodHandles.Lookup.`findVirtual(Class<?> refc, String name, MethodType type)` Produces a method handle for a virtual method.

Copyright © 2025 API Design. All Rights Reserved.