classcastexception信息详情

classcastexception发音

意思翻译

类异常

相似词语短语
双语使用场景

result of running c's main method might surprise you — it'll issue a ClassCastException!───运行c的main方法的结果可能会让您吃惊—它将发出一个ClassCastException !

If either of the above rules are violated, then a ClassCastException is thrown by the class loader.───如果违反了以上任何一条规则,那么类装入器就会抛出ClassCastException。

Another exception that can be thrown by the class loader is ClassCastException.───类装入器能够抛出的另一个异常是ClassCastException。

In the previous code, we'd expect that if register( "test" ) were called on an instance of C, a ClassCastException would be signaled.───在以前的代码中,我们认为如果对实例C调用register(“test”),会发出ClassCastException。

ClassCastException - if the value is of an inappropriate type for this map (optional).───如果值的类型对于map而言不适当抛出(可选)。

The result of running C's main method might surprise you -- it'll issue a ClassCastException!───运行C的main方法的结果可能会让您吃惊―它将发出一个ClassCastException!

You don't need to write any special code for this exception, since it indicates a programmer error that could happen anywhere in a program.───否则你将会得到一个ClassCastException异常信息。你不需要为该异常信息写特殊的代码,因为它提示程序错误,它会发生在程序的任何一个地方。

Attempting to add an ineligible element throws an unchecked exception, typically NullPointerException or ClassCastException .───试图加入一个不适当的元素会抛出未检查异常,通常为NullPointerException或ClassCastException。

ClassCastException - if the specified object's type prevents it from being compared to this Object.───如果指定的对象类型不允许它和该对象进行比较时抛出。

英语使用场景