Name

ClassCastException

Synopsis

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

java.lang.ClassCastException

Figure 10-11. java.lang.ClassCastException

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

Thrown By

org.xml.sax.helpers.ParserFactory.makeParser( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.