[Chapter 25] 25.9 java.lang.ClassCastException (JDK 1.0)

#

| Chapter 25 The java.lang Package |

## 25.9 java.lang.ClassCastException (JDK 1.0)

###

Signals an invalid cast of an object to a type of which it is not an instance.

    public class ClassCastException extends RuntimeException {
        // Public Constructors
                public ClassCastException();
                public ClassCastException(String s);
    }

### Hierarchy:

Object->Throwable(Serializable)->Exception->RuntimeException->ClassCastException

java.lang.Class (JDK 1.0) |  | java.lang.ClassCircularityError (JDK 1.0)