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

单项选择题

Click the Exhibit button.

What is the result?()

    A.Compilation of class A fails.
    B.Line 28 prints the value 3 to System.out.
    C.Line 28 prints the value 1 to System.out.
    D.A runtime error occurs when line 25 executes.
    E.Compilation fails because of an error on line 28.

点击查看答案

相关考题

  • 单项选择题
    Given: Which statement is true about the class of an object that can reference the variable base?()

    A.It can be any class.
    B.No class has access to base.
    C.The class must belong to the geometry package.
    D.The class must be a subclass of the class Hypotenuse.

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

    A.Hello
    B.Hello World
    C.Compilation fails.
    D.Hello World 5
    E.The code runs with no output.

  • 多项选择题
    Whichfourstatementsaretrue?()

    A.Has-a relationships should never be encapsulated.
    B.Has-a relationships should be implemented using inheritance.
    C.Has-a relationships can be implemented using instance variables.
    D.Is-a relationships can be implemented using the extends keyword.
    E.Is-a relationships can be implemented using the implements keyword.
    F.An array or a collection can be used to implement a one-to-many has-a relationship.

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

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