它是在类型比较中发现不兼容类型的时候抛出的。
It is thrown as a result of incompatible types being found in a type comparison. The JVM specification says a that ClassCastException is.
结果克隆必须与原始实例具有相同的类型或是原始实例的兼容类型。
The resulting clone must be of the same type as or a compatible type to the original instance.
对于这个场景,这些数据类型是兼容的。
For this particular scenario, these data types are compatible.
应用推荐