单项选择题
Given:
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();
相关考题
-
多项选择题
Click the Exhibit button. Which three statements are true?()
A.Compilation fails.
B.The code compiles and the output is 2.
C.If lines 16, 17 and 18 were removed, compilation would fail.
D.If lines 24, 25 and 26 were removed, compilation would fail.
E.If lines 16, 17 and 18 were removed, the code would compile and the output would be 2.
F.If lines 24, 25 and 26 were removed, the code would compile and the output would be 1. -
单项选择题
Given: What is the result?()
A.Compilation fails.
B.atom granite
C.granite granite
D.atom granite granite
E.An exception is thrown at runtime.
F.atom granite atom granite -
多项选择题
Given Which three are valid on line?()
A.final
B.static
C.native
D.public
E.private
F.abstract
G.protected
