Return statement in used to explicitly return from a method. Return causes program control to transfer back to the caller of the method.
The return statement immediately terminates the method in which it is executed.
Here is an example to demonstrate return :
public static void main(String args)
System.out.println("it will not execute");