Java in a Nutshell

Previous Chapter 25
The java.lang Package
Next
 

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


Previous Home Next
java.lang.Class (JDK 1.0) Book Index java.lang.ClassCircularityError (JDK 1.0)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java
This HTML Help has been published using the chm2web software.