Computer Science, asked by sam4983, 8 months ago

what is the role of Return statement​

Answers

Answered by VermaMadhu
4

Explanation:

A return statement causes the program control to transfer back to the caller of a method. Every method in Java is declared with a return type and it is mandatory for all java methods. A return type may be a primitive type like int, float, double, a reference type or void type...... hope it may help you.....

Answered by himmatbhavana
0

Answer:

the return statment terminates the execution of a function and return control to the calling fuction.Execution resumes in the calling fuction.at the point immediately following the call.a return statment can also return a value to the calling function

Similar questions