Object-oriented programming in Java.
To the code, a method is returned which invokes it, when: In method, all statements are completed.reaches to the a return statement oran exception is thrown (covered later)
Which ever would come first?
Return type of the method is declared in the method declaration. Within methodís body, return statement is used so that to return value.
Method which has been declared void will not return value. Return statement is not need