previous | start | next

Syntax 3.5: The return Statement

  return expression;
 or
return;

Example:

  return balance;

Purpose:

To specify the value that a method returns, and exit the method immediately. The return value becomes the value of the method call expression.

previous | start | next