试题详情
单项选择题 Given: Which code, inserted at line 16, will cause a java.lang.ClassCastException?()

A、Alpha a = x;

B、Foo f = (Delta)x;

C、Foo f = (Alpha)x;

D、Beta b = (Beta)(Alpha)x;

  • B
  • 关注下方微信公众号,在线模考后查看

热门试题