English

A method may be associated with: - Computer Applications

Advertisements
Advertisements

Question

A method may be associated with:

Options

  • Return

  • Call

  • Promote

  • None

MCQ

Solution

Return

Explanation:

A Java method can include a return statement that returns a value to the calling function. The method's return type describes the type of value that will be returned. If a method returns no value, it is declared as void.

shaalaa.com
  Is there an error in this question or solution?
Chapter 5: User - Defined Methods - EXERCISES [Page 335]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 5 User - Defined Methods
EXERCISES | Q I. 6. | Page 335
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×