A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/ClassCastException.html below:

ClassCastException (Java SE 21 & JDK 21)

All Implemented Interfaces:
Serializable

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 = Integer.valueOf(0);
     System.out.println((String)x);
 
Since:
1.0
See Also:

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4