tg-me.com/topJavaQuizExplain/117
Create:
Last Update:
Last Update:
What is the output of the code?
❌ A. true
❌ B. false
❌ C. true false
✅ D. The code does not compile
❌ E. A runtime exception is thrown
❌ F. None of the mentioned
Explanation:
Break statement can only be used with loop or switch. So, using break with if statement causes “break outside switch or loop” compilation error.
BY Explanations “Top Java Quiz Questions”
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Share with your friend now:
tg-me.com/topJavaQuizExplain/117