Question #268012

What does the following fragment display? (


) class MyClass

{

public static void main(String[] args) {

boolean b = true; int i = 2;

do

{

i++;

b = !b; } while (b);

System.out.println(i); }

}



Expert's answer

output: 3


LATEST TUTORIALS
APPROVED BY CLIENTS