java - Jumping from a try block to a finally block -
java - Jumping from a try block to a finally block -
i'm trying next :
string txt = "begin\n"; try{ // stuff if(some condition) jump code // other stuff } { string txt += "end\n"; homecoming txt; } is there way implement jump code without raising exception (raising exception wouldn't clean in opinion)
yes 1 way return method this
string txt = "begin\n"; try{ // stuff if(some condition) return; // other stuff } { string txt += "end\n"; } java
Comments
Post a Comment