1. GOTO, mainly used for jump, but will disrupt our program logic, generally not used, it can implement the RETURN, EXIT function 2. RETURN, RETURN at the end of the program, end the program 3.EXI
1. GOTO, mainly used for jump, but will disrupt our program logic, generally not used, it can implement the RETURN, EXIT function 2. RETURN, RETURN at the end of the program, end the program 3.EXI
1. GOTO, mainly used for jump, but will disrupt our program logic. It is generally not used. It can implement the RETURN and EXIT functions.
2. RETURN: RETURN to the end of the program and end the program.
3. EXIT, mainly used to EXIT the current loop, which is equivalent to break in java.
4. You can use custom exception methods to implement the continue function in java.
Comparison between them
Customize exceptions to implement the continue Function