Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Core Java - Interview Questions and Answers for 'Return vs continue' - 1 question(s) found - Order By Newest | ||||
| ||||
Ans. return is used within a method to return control out of the method. It may be followed by a value which is returned from the method to calling method immediately preceding the point of call. continue statement is used within a loop to start next iteration without executing the remaining statements in the loop. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  return statement  continue statement  return vs continue  for loop  control statements  loop statement | ||||
Related Questions | ||||
What are the considerations to be made in case of loops in Java ? | ||||
What is the difference between a break statement and a continue statement? | ||||