हिंदी

Explain the method of a return statement in Java programming. - Computer Applications

Advertisements
Advertisements

प्रश्न

Explain the method of a return statement in Java programming. 

संक्षेप में उत्तर

उत्तर

  1. When defining a method with a return type, the body must include a return statement.
  2. The return statement sends the method's outcome to the calling program.
  3. Because it appears at the end of a method, it is also known as a method terminator. 
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: User - Defined Methods - EXERCISES [पृष्ठ ३३७]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 5 User - Defined Methods
EXERCISES | Q VI. 15. | पृष्ठ ३३७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×