Name

ClassCastException

Synopsis

This exception signals an attempt to cast an object to a type that it is not an instance of, or an attempt to cast an object to an interface that it does not implement. This class is the same as its J2SE equivalent, apart from its inability to be serialized.

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

Get J2ME in a Nutshell 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.