Java   View all facts   Glossary   Help
syntactic unit > statement > control flow statement > return statement > return statement that returns a value
Next return statementreturn statement that does not return a value    Upreturn statement

return statement that returns a value
subjectfact 
return statement that returns a valuehas example
return count; 
added by: JK, 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 return statementadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:49.0
return statementhas purpose to exit from the current method and jump back to the statement within the calling method that follows the original method call2001-10-19 11:37:49.0
has syntax
return expression
2001-10-19 11:37:49.0
has type that is the return type of the method or a subtype of it2001-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