what ig I use goto statement in java
Answers
Answered by
3
Answer:
Java does not support goto, it is reserved as a keyword just in case they wanted to add it to a later version. Unlike C/C++, Java does not have goto statement, but java supports label. ... We can specify label name with break to break out a specific outer loop.
Explanation:
Answered by
23
Answer:
Unlike C++, Java does not support the goto statement. Instead, it has label . Labels are used to change the flow of the program and jump to a specific instruction or label based on a condition. The following illustration may help you to better understand what a label is.
Similar questions