单选题

Given: Which code, inserted at line 16, will cause a java.lang.ClassCastException?()

AAlpha a = x;

BFoo f = (Delta)x;

CFoo f = (Alpha)x;

DBeta b = (Beta)(Alpha)x;

正确答案

来源:www.examk.com

答案解析

相似试题
  • Given: Which statement is true?()

    单选题查看答案

  • Given: Which is true?()

    单选题查看答案

  • Given: Which three are true?()

    多选题查看答案

  • Given: Which statement is true?()

    单选题查看答案

  • Given: Which statement is true?()

    单选题查看答案

  • Given: Which statement is true?()

    单选题查看答案

  • Given: Which statement is true?()

    单选题查看答案

  • Given: Which statement is true?()

    单选题查看答案

  • Given: Which two are true?()

    多选题查看答案

  • Given: Which statement is true?()

    单选题查看答案