0
What is the use of return statement in java
Return
3 Answers
+ 2
Kaustubh Dabhade
The return statement is used within a function to RETURN the result of the function.
Returning a function result gives you an item which may be operated upon further, similar to a variable.
Within a function, return also stops any further iteration, because you have achieved a result.
Cristian Gabriel Mazzulla has given you a great example
0
Thanks will check