Question 5 / 35:  output ?
public class Program195 {

static int i;

int j;

public Program195() {

// TODO Auto-generated constructor stub

}

public static void main(String[] args) {

// TODO Auto-generated method stub

Program195 x1 = new Program195();

Program195 x2 = new Program195();

x1.i=3;

x1.j =4;

System.out.println("x=="+x1.i+"y=="+x1.j);

x2.i=5;

x2.j=6;

System.out.println("x=="+x1.i+"y=="+x1.j+"x22=="+x2.i+"x2=="+x2.j);

}

}

A  x==3y==4 x==5y==4x22==5x2==6
B  3 4 5 6
C  3 4 3 6
D  3 6 4 6
<< First < Previous Next > Last >>
Quiz Home Page
https://www.jobilize.com/ocjp-1z0-803-oca1-7-mock-exam-part-ii-quiz-by-pankaj-amdocs-gurg

OCA(1z0-803_OCA1.7)MockExamPII

Author:

Access: Public Instant Grading

Ask
Madison Christian
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/ocjp-1z0-803-oca1-7-mock-exam-part-ii-quiz-by-pankaj-amdocs-gurg" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>