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();
相关问题推荐
Given the following code: public class Test { void printValue(int m){ do { System.out.println("The value is"+m); } while( --m > 10 ) } public static void main(String arg[]) { int i=10; Test t= new Test(); t.printValue(i); } } Which will be output?()
A、 The value is 8
B、 The value is 9
C、 The value is 10
D、 The value is 11
电子邮件是Internet最基本、最常用的服务功能.它采用__________工作模式。
数据模型按不同的应用层次分成三种类型,它们是_________、逻辑数据模型和物理数据模型。
服务器的分类标准有多种,按服务器的机箱结构划分可分为台式服务器、机架式服务器、__________服务器和刀片式服务器四类。
计算机病毒是一段可执行的__________。