Advertisements
Advertisements
Question
The statement that brings the control back to the calling method is ______.
Options
break
System.exit(0)
continue
return
MCQ
Fill in the Blanks
Solution
The statement that brings the control back to the calling method is return.
Explanation:
- The return Statement is used to exit a method and pass control back to the calling method.
- It can also return a value if the method is designed to do so.
shaalaa.com
Is there an error in this question or solution?