欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

10. class Line { 
11. public static class Point { } 
12. } 
13. 
14. class Triangle { 
15. // insert code here 
16. } 
Which code, inserted at line 15, creates an instance of the Point class defined in Line?() 

    A. Point p = new Point();
    B. Line.Point p = new Line.Point();
    C. The Point class cannot be instatiated at line 15.
    D. Line 1 = new Line() ; 1.Point p = new 1.Point();

点击查看答案&解析

相关考题

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

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