Diff bw break and system.exit(0);
Answers
Answered by
3
break(); closes the case.
system.exit(0); exits the whole system within which you were running the program.
Answered by
0
Explanation:
Break jumps from the current iteration to the next loop but system.exit(0) terminates the running of the whole program then and there.
HOPE IT HELPS
Similar questions