Return statement: It is a statement employed to terminate the execution of the method. The method with void return type might only have return statements of the form as:
return;
The method with any other return type should have at least one return statement of the form
return expression;
Here the type of expression should match the return type of the method.