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

单项选择题

10. class Line { 
11. public class Point { public int x,y; } 
12. public Point getPoint() { return new Point(); } 
13. } 
14. class Triangle { 
15. public Triangle() { 
16. // insert code here 
17. } 
18. } 
Which code, inserted at line 16, correctly retrieves a local instance of a Point object?() 

    A. Point p = Line.getPoint();
    B. Line.Point p = Line.getPoint();
    C. Point p = (new Line()).getPoint();
    D. Line.Point p = (new Line()).getPoint();

点击查看答案&解析

相关考题

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

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