• 2022-06-06 问题

    下面代码在运行时会产生什么异常?( ) Object obj = new Object();String str = (String)obj; A: ClassNotFoundException B: ClassCastException C: ObjectClassException D: NullPointerException

    下面代码在运行时会产生什么异常?( ) Object obj = new Object();String str = (String)obj; A: ClassNotFoundException B: ClassCastException C: ObjectClassException D: NullPointerException

  • 1