go top

classcastexception

网络释义

  类转换异常

...的对象 a 和 B 类的对象 b 之间没有直接关系, 而强制将 a 转换成 B类型, 此时就会发生这种异常 ClassCastException(类转换异常) , 这种程序编译时不会出现错误提示, 只有在运行时才会提示异常的发生, 这个异常造成的根本原因就是两个没有关系的类进行相互...

基于34个网页-相关网页

  类型转换

...这个对象必须实际上是子类类型才行(即编译时为父类类型,运行时是子类类型),否则,运行时出现ClassCastException(类型转换)异常。

基于13个网页-相关网页

双语例句

  • Another exception that can be thrown by the class loader is ClassCastException.

    类装入器能够抛出的另一个异常是ClassCastException。

    youdao

  • The result of running c's main method might surprise you — it'll issue a ClassCastException!

    运行c的main方法的结果可能会让您吃惊—它将发出一个ClassCastException !

    youdao

  • If either of the above rules are violated, then a ClassCastException is thrown by the class loader.

    如果违反了以上任何一条规则,那么类装入器就会抛出ClassCastException。

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定