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?
