Oracle
1Z0-803 · Question #251
1Z0-803 Question #251: Real Exam Question with Answer & Explanation
The correct answer is C: 5 4 5 6. See the full explanation below for the reasoning.
Question
Given: public class X { static int i; int j; public static void main(String[] args) { X x1 = new X(); X x2 = new X(); x1.i = 3; x1.j = 4; x2.i = 5; x2.j = 6; System.out.println( x1.i + " "+ x1.j + " "+ x2.i + " "+ x2.j); } } What is the result?
Options
- A3 4 5 6
- B3 4 3 6
- C5 4 5 6
- D3 6 4 6
Community Discussion
No community discussion yet for this question.