欢迎来到在线考试题库网 在线考试题库官网
logo
全部科目 > Oracle认证考试 > OCJP(310-065)

多项选择题

Given:

Which two, independently, will allow Sub to compile?()

    A.Change line 2 to:public int a;
    B.Change line 2 to:protected int a;
    C.Change line 13 to:public Sub() { this(5); }
    D.Change line 13 to:public Sub() { super(5); }

点击查看答案

相关考题

  • 多项选择题
    Given: Which five methods, inserted independently at line 5, will compile?()

    A.public int blipvert(int x) { return 0; }
    B.private int blipvert(int x) { return 0; }
    C.private int blipvert(long x) { return 0; }
    D.protected long blipvert(int x) { return 0; }
    E.protected int blipvert(long x) { return 0; }
    F.protected long blipvert(long x) { return 0; }

  • 单项选择题
    Given: What is the result?()

    A.0.0
    B.Compilation fails.
    C.A ParseException is thrown by the parse method at runtime.
    D.A NumberFormatException is thrown by the parse method at runtime.

  • 单项选择题
    Given: What is the result?()

    A.test
    B.null
    C.An exception is thrown at runtime.
    D.Compilation fails because of an error in line 1.
    E.Compilation fails because of an error in line 4.
    F.Compilation fails because of an error in line 5.

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题