Java Programming/Keywords/return
From Wikibooks, the open-content textbooks collection
return is a Java keyword.
Returns a primitive value, or an object reference, or nothing(void). It does not return object values, only object references.
Syntax:
returnvariable; // --- Returns variable orreturn; // --- Returns nothing