It does not need to contain a
return statement, but it may do so. In such a case, a
return statement can be
used to branch out of a control flow block and exit the method and is simply
used like this:
return; If you try to
return a value from a method that is declared void , you will get a compiler error.
read more >>