Oracle
1Z0-851 · Question #90
1Z0-851 Question #90: Real Exam Question with Answer & Explanation
The correct answer is A. Line 26 prints "a" to System.out.. See the full explanation below for the reasoning.
Question
Click the Exhibit button. Given: A a = new A(); System.out.println(a.doit(4, 5)); What is the result?
Exhibit
Options
- ALine 26 prints "a" to System.out.
- BLine 26 prints "b" to System.out.
- CAn exception is thrown at line 26 at runtime.
- DCompilation of class A will fail due to an error in line 6.
Community Discussion
No community discussion yet for this question.
