Question: // what is the output? public class Q { public static void main(String[] args) { int i = 1; int j = 2; while

// what is the output? public class Q { public static void main(String[] args) { int i = 1; int j = 2; while (i < 5) { i++; } j = j * 2; System.out.println(j);
Step by Step Solution
There are 3 Steps involved in it
Lets trace through the code 1 i starts at 1 and j starts at 2 2 Th... View full answer
Get step-by-step solutions from verified subject matter experts
