第6课面向对象测试题.docxVIP

  • 3
  • 0
  • 约8.56千字
  • 约 13页
  • 2022-06-12 发布于四川
  • 举报
第6课面向对象测试题 您的姓名:[填空题]* 1 2 3 4 5 6 7 8 910 11 12 1314 151 u import java.io.lOException;日 class A { public void process() { System.out.printIn(Az);} }S class B extends A ( 白 public void process() throws lOException {super.process(); System.out.println(Bz);throw new IOException(); r }□ public static void main (String []args) { try {new B().process();} catch (lOException e) { System.out.println( Exception);} ) }运行结果是()[单项选择题]* A ExceptionB A,B,Exception c第12行编译失败D第6行编译失败(正确答案) E运行时候抛出空指向异常1 23 45 67 89 □ class Plant{private String name; public Plant(String name) { this.name= name;} public String

文档评论(0)

1亿VIP精品文档

相关文档