Solved

What Will Be the Output of the Following Code Snippet

Question 76

Multiple Choice

What will be the output of the following code snippet? boolean token = false;
While (token)
{
System.out.println("Hello") ;
}


A) "Hello" will be displayed infinite times.
B) No output because of compilation error.
C) No output after successful compilation.
D) "Hello" will be displayed only once.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions