Question: Choose the correct syntax of the WHILE loop in Java below. while(condition) { //statements } while(condition); { //statements } None while { //statements }(condition) What



Choose the correct syntax of the WHILE loop in Java below. while(condition) { //statements } while(condition); { //statements } None while { //statements }(condition) What are the values of var1 and var2 when the code finishes executing? int varl = 0; int var2 = 2; while ((var2 != 0) && ((var / var2) >= 0)) { var1 = varl + 1; var2 = var2 -1; } var1 = 2, var2 = 0 var1 = 1, var2 = 1 var1 = 3, var2 = -1 var1 = 0, var2 = 2 Which of the following is not a correct use of a method from the Character class? isDigit('8') isWhitespace("Test String") isLetter('y') toLowerCase('A')
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
