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 [पृष्ठ ३३७]