Java View all facts Glossary Help |
syntactic unit > statement > control flow statement > return statement > return statement that returns a value |
return statement that returns a value | ||||
subject | fact |
return statement that returns a value | has example return count; | |
is a subtopic of Methods | ||
is a kind of return statement | ||
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 | ||
statement | is terminated by a semicolon | |
should be not more than one line long if possible | ||
syntactic unit | has syntax rule bold = mandatory |