#

| Chapter 25 The java.lang Package |

## 25.43 java.lang.NoSuchMethodException (JDK 1.0)

###

This exception signals that the specified method does not exist in the specified class.

    public class NoSuchMethodException extends Exception {
        // Public Constructors
                public NoSuchMethodException();
                public NoSuchMethodException(String s);
    }

### Hierarchy:

Object->Throwable(Serializable)->Exception->NoSuchMethodException

### Thrown By:

Class.getConstructor(), Class.getDeclaredConstructor(), Class.getDeclaredMethod(), Class.getMethod()

java.lang.NoSuchMethodError (JDK 1.0) |  | java.lang.NullPointerException (JDK 1.0)