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); }
Object->Throwable(Serializable)->Exception->RuntimeException->ClassCastException