Java-Return

Return The return statement is used to explicitly return from a method. The return statement immediately terminates the method in which it is executed. For example: As you can see, the final println( ) statement is not executed. As soon as return is executed,¬†control passes back to the caller. Program Program Source class Javaapp { … Read more…