मराठी

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×