Consider the following code snipett: public String testMethod1(int i, int j) { //do something testmethod2(i,j); return "some string"; } public String testMethod2(int i, int j) { //do something if(some condition) { //Stop execution of this method //continue execution of previous method as if this method was never called } return "some string"; } Is there […]
The post How to stop execution of a called method in java and continue execution of calling method appeared first on BlogoSfera.