English

A method that does not return any value has return type ______.

Advertisements
Advertisements

Question

A method that does not return any value has return type ______.

Options

  • void

  • int

  • none

  • null

MCQ
Fill in the Blanks
Advertisements

Solution

A method that does not return any value has return type void.

Explanation:

  • A method that does not return any value uses the return type void.
  • The void keyword tells the compiler that the method performs a task but does not return a result.
shaalaa.com
  Is there an error in this question or solution?
Chapter 3: User-Defined Methods - Exercises [Page 90]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 3 User-Defined Methods
Exercises | Q 1. (v) | Page 90
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×