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

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -