Advertisements
Advertisements
प्रश्न
Explain the method of a return statement in Java programming.
थोडक्यात उत्तर
उत्तर
- When defining a method with a return type, the body must include a return statement.
- The return statement sends the method's outcome to the calling program.
- Because it appears at the end of a method, it is also known as a method terminator.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 5: User - Defined Methods - EXERCISES [पृष्ठ ३३७]