Using return statement
return:
return:
The return statement is used to explicitly return from a method. The return statement is used to explicitly return from the method . That is, that is it causes program control to transfer back to the caller of the method.