Java   View all facts   Glossary   Help
syntactic unit > statement > control flow statement > return statement
Next control flow statementbreak statement    Upcontrol flow statement    Previous control flow statementloop statement   

return statement
subjectfact 
return statementhas purpose to exit from the current method and jump back to the statement within the calling method that follows the original method calladded by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:49.0
has syntax
return expression
added by: JK, 2001-10-19 11:37:49.0
has type that is the return type of the method or a subtype of itadded by: DS, source: Sun Java Tutorial, 2001-10-19 11:37:49.0
is a subtopic of Methods2001-10-19 11:37:49.0
is a kind of control flow statementadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:49.0
statementis terminated by a semicolon    2001-10-19 11:37:57.0
should be not more than one line long if possible2001-10-19 11:37:57.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0

Kinds of return statement :