1. What will be the output of the program? int x = l, y = 6; while (y--) { x++; } System.out.println("x = " + x +" y = " + y);
Ask Your Doubts Here
Comments
By: guest on 02 Jun 2017 01.26 am
Compilation fails because the while loop demands a boolean argument for it's looping condition, but in the code, it's given an int argument. while(true) { //insert code here }