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

单项选择题

Click the Exhibit button.

Given this code from Class B:
25.A a1 = new A();
26.A a2 = new A();
27.A a3 = new A();
28.System.out.println(A.getInstanceCount());
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.

点击查看答案
微信小程序免费搜题
微信扫一扫,加关注免费搜题

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