Examlex

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) ;


Definitions:

Power

The rate at which electrical energy is transferred by an electric circuit.

Time

The ongoing and continuous sequence of events that occur in succession, from the past through the present to the future.

Capacity

The maximum amount or volume something can contain or produce, often used in contexts like battery storage, production capabilities, or load bearing.

Related Questions