previous | start | next

Syntax 2.5: The return Statement

  return expression;
 or
return;

Example:

  return message;

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