Share this post! | Vote this! |
|
Break statement has following three uses:-
1.Terminate the execution sequence in switch.
2.Used to exit loops from anywhere.
3.Break used as form of GOTO.
GOTO statement as we know is not supported by Java.The reason being it provides control branching in unstructured and arbitrary manner.It is quite obvious from a C and C++ program that after reading through GOTO-ridden code is hard to understand the flow of program and also code is hard to maintain. more...
1.Terminate the execution sequence in switch.
2.Used to exit loops from anywhere.
3.Break used as form of GOTO.
GOTO statement as we know is not supported by Java.The reason being it provides control branching in unstructured and arbitrary manner.It is quite obvious from a C and C++ program that after reading through GOTO-ridden code is hard to understand the flow of program and also code is hard to maintain. more...
0 comments:
Post a Comment