Question 1
How many times will the following code print "Welcome to Java"?
int count = 0;
do {
System.out.println("Welcome to Java");
} while (count++ < 10);
◦ 8
◦ 9
◦ 10
◦ 11
◦ 0
Question 2
How many times will the following code print "Welcome to Java"?
int count = 0;
do {
System.out.println("Welcome to Java");
} while (++count < 10);
◦ 8
◦ 9
◦ 10
◦ 11
◦ 0