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

单项选择题

Given:

Which code, inserted at line 14, allows the Sprite class to compile?()

    A.Direction d = NORTH;
    B.Nav.Direction d = NORTH;
    C.Direction d = Direction.NORTH;
    D.Nav.Direction d = Nav.Direction.NORTH;

点击查看答案

相关考题

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

    A.hi hi
    B.hi world
    C.world world
    D.Compilation fails.
    E.An exception is thrown at runtime.

  • 多项选择题
    Given: Which two classes use the Shape class correctly?()

    A.public class Circle implements Shape {private int radius;}
    B.public abstract class Circle extends Shape {private int radius;}
    C.public class Circle extends Shape {private int radius;public void draw();}
    D.public abstract class Circle implements Shape { private int radius;public void draw();}
    E.public class Circle extends Shape {private int radius;public void draw() {/* code here*/}}

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

    A.Compilation fails.
    B.An exception is thrown at runtime.
    C.The code executes normally and prints "foo".
    D.The code executes normally, but nothing is printed.

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

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