Java View all facts Glossary Help |
syntactic unit > statement > control flow statement > return statement |
return statement | ||||
subject | fact |
return statement | has purpose to exit from the current method and jump back to the statement within the calling method that follows the original method call | |
has syntax return expression | ||
has type that is the return type of the method or a subtype of it | ||
is a subtopic of Methods | ||
is a kind of control flow statement | ||
statement | is terminated by a semicolon | |
should be not more than one line long if possible | ||
syntactic unit | has syntax rule bold = mandatory |
Kinds of return statement :