Select from following answers:- Break.
- Return.
- Both a and b.
- All of the above.

- All Above
Break and Return both keywords are used to Exit the For Loop but there is a difference between Break and Return keyword.
Break is used to exit only For Loop where as Return is used to exit the whole programe or method.
After breaking the for loop,even cursor will go to the next statement and execute them but in case of returning,no statement will be executed.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator