Serializable
public class ClassCastException extends RuntimeException
ClassCastException
Object x = new Integer(0); System.out.println((String)x);
public ClassCastException()
public ClassCastException​(String s)
s
© 2018 Oracle Corporation and/or its affiliates