My Java Quiz

The ultimate place to learn Java!

Question #65: What is the output of the following code?

int z = 1;
do {
  z--;
} while (z > 2);
System.out.println(z);