Oracle
1Z0-851 · Question #11
1Z0-851 Question #11: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #11. The question stem and answer options stay visible for context.
Question
Given: 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?
Options
- APoint p = Line.getPoint();
- BLine.Point p = Line.getPoint();
- CPoint p = (new Line()).getPoint();
- DLine.Point p = (new Line()).getPoint();
Unlock 1Z0-851 to see the answer
You've previewed enough free 1Z0-851 questions. Unlock 1Z0-851 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.