Solved

What Are the Values of I and J After the Following

Question 55

Multiple Choice

What are the values of i and j after the following code snippet executes?
Int i = 60;
Int j = 50;
Int count = 0;
While (count < 5)
{
I = i + i;
I = i + 1;
J = j - 1;
J = j - j;
Count++;
}
System.out.println(i) ;
System.out.println(j) ;


A) i = 65, j = 1
B) i = 65, j = 45
C) i = 1951, j = 0
D) i = 1951, j = 45

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions