Solved

Is the Following Code Snippet Legal

Question 46

Multiple Choice

Is the following code snippet legal? Is the following code snippet legal?    A) Yes, it is legal but does not print anything. B) Yes, it is legal and prints  Do you think in Java?  once. C) Yes, it is legal and prints  Do you think in Java?  twice. D) No, it is not legal and gives a compilation error.


A) Yes, it is legal but does not print anything.
B) Yes, it is legal and prints "Do you think in Java?" once.
C) Yes, it is legal and prints "Do you think in Java?" twice.
D) No, it is not legal and gives a compilation error.

Correct Answer:

verifed

Verified

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

Related Questions