网络 类型转换异常;最后一行将抛出;错误解析
ClassCastException - if the argument is not a Long.
如果该参数不是Long时抛出。
ClassCastException - if the argument is not an Integer.
如果该参数不是Integer时抛出。
Another exception that can be thrown by the class loader is ClassCastException.
类装入器能够抛出的另一个异常是ClassCastException。
The 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。