#

| Chapter 25 The java.lang Package |

## 25.41 java.lang.NoSuchFieldException (JDK 1.1)

###

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

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

### Hierarchy:

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

### Thrown By:

Class.getDeclaredField(), Class.getField()

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