Multiple Choice
What will be the output of the following code snippet? boolean token1 = true;
While (token1)
{
For (int i = 0; i < 10; i++)
{
System.out.println("Hello") ;
}
Token1 = false;
}
A) No output.
B) Hello will be displayed 10 times.
C) Hello will be displayed 9 times.
D) Hello will be displayed infinite times.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q4: Which of the following is considered a
Q5: What is the output of the code
Q6: What is the output of the following
Q7: Which of the following conditions can be
Q8: Is the following code snippet legal? boolean
Q10: Choose the loop that is equivalent to
Q11: What is the output of the following
Q12: What will be the result of running
Q13: What is the output of the code
Q14: How many times does the following loop