int count = 0;
while (count < 10) {
System.out.println("Welcome to Java");
count++;
}
a. 13
b. 12
c. 11
d. 10
Answer:
d. 10
Explanation:
The value of count is getting incremented by 1 every time starting from 0 till it reaches 10 which would lead to 10 print statements.