How many times will the following code print "Welcome to Examveda"?
int count = 0;
do {
System.out.println("Welcome to Examveda");
count++;
} while (count < 10);
int count = 0;
do {
System.out.println("Welcome to Examveda");
count++;
} while (count < 10);
A. 8
B. 9
C. 10
D. 11
E. 0
Answer: Option C
Related Questions on Flow Control
What is the purpose of the "if" statement in Java?
A. To execute a block of code conditionally
B. To create loops
C. To declare variables
D. To define methods
A. No output
B. Error
C. Hello
D. 5
Join The Discussion