Eclipse
IntelliJ
NetBeans
XpoLog
Upload
API List
Favorites
Packages
Classes
Methods
Limit search to favorites
Recent
Register
Login
Classic Mode
Library:
Java SE, Sun OpenJDK7.b12
Package:
java.lang
Exception
public
class
ClassCastException
Overview
Inheritance
Members
Usage
Source
Books
Since
JDK1.0
Version
1.27, 05/05/07
Author(s)
unascribed
Thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance. For example, the following code generates a
ClassCastException
:
Object x = new Integer(0); System.out.println((String)x);
Wiki javadoc
Use
textile entry format
.
Add your comments here.
NOTE: Usage information is based only on libraries in your favorites list.
Home
-
About
-
FAQ
-
Privacy
-
Contact
ClassCastException: