Monday, December 1, 2008

Return statement

Whenever you want to return from a method explicitly a return statement is used. The program control is transferred to the caller of the method. The return statement is also called as an categorized jump statement. At any time in a method the return statement can be used to cause execution to branch back to the caller of the method. Thus the return statement immediately terminates the method in which it is executed. As soon as the return is executed, control passes back to the caller.

0 comments: