1.

Which of the following is not a valid jump statement?(a) break(b) goto(c) continue(d) returnI had been asked this question during an online exam.My question is from Control Statements topic in chapter Operators and Control Statements of Java

Answer»

The CORRECT choice is (b) goto

For explanation I would say: break, continue and return transfer control to ANOTHER part of the program and returns back to caller after execution. However, goto is marked as not USED in JAVA.



Discussion

No Comment Found

Related InterviewSolutions