Oracle
1Z0-803 · Question #151
1Z0-803 Question #151: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-803 to reveal the answer and full explanation for question #151. The question stem and answer options stay visible for context.
Question
Given: public class Access { private int x = 0; private int y = 0; public static void main(String[] args) { Access accApp = new Access(); accApp.printThis(1, 2); accApp.printThat(3, 4); } public void printThis(int x, int y) { x = x; y = y; System.out.println("x:" + this.x + " y:" + this.y); } public void printThat(int x, int y) { this.x = x; this.y = y; System.out.println("x:" + this.x + " y:" + this.y); } } What is the result?
Options
- Ax:1 y:2
- Bx:0 y:0
- Cx:3 y:4
- Dx:3 y:4
Unlock 1Z0-803 to see the answer
You've previewed enough free 1Z0-803 questions. Unlock 1Z0-803 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.