What is the output of the following code? int x = 0;while (x…

Questions

Whаt is the оutput оf the fоllowing code? int x = 0;while (x < 4) {  x = x + 1;}System.out.println("x is " + x);