1.

From where break statement causes an exit?(a) Only from innermost loop(b) Terminates a program(c) Only from innermost switch(d) From innermost loops or switchesI got this question by my school principal while I was bunking the class.This question is from Control Statements topic in section Operators and Control Statements of Java

Answer»

The CORRECT choice is (d) From INNERMOST loops or switches

For EXPLANATION I WOULD say: The break statement causes an EXIT from innermost loop or switch.



Discussion

No Comment Found

Related InterviewSolutions