Home » Oracle » 1z0-803 » What is the result?
Given:
What is the result?
A. 6564
B. 6554
C. 6566
D. 6565
Correct Answer: A
Explanation/Reference:
Explanation:
Within main z is assigned 6. z is printed. Output: 6
Within doStuff z is assigned 5.DoStuff2 locally sets z to 4 (but MyScope.z is set to 4), but in Dostuff z is still 5. z is printed. Output: 5
Again z is printed within main (with local z set to 6). Output: 6
Finally MyScope.z is printed. MyScope.z has been set to 4 within doStuff2(). Output: 4
Download Printable PDF. VALID exam to help you PASS.
|
|