java.lang.ClassCastExceptionClassCastException:
Object x = new Integer(0);
System.out.println((String)x);
| Constructor Summary | ||
| ClassCastException() Constructs a ClassCastException with no detail message. |
||
| ClassCastException(String s) Constructs a ClassCastException with the specified
detail message. |
| Methods inherited from class java.lang.Throwable |
| fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ClassCastException with no detail message.ClassCastException with the specified
detail message.