Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question 1 suppose your method does not return any value. which of the …

Question

question 1
suppose your method does not return any value. which of the following keywords can be used as a return type?
a double
b public
c none of the above.
d void
e int

Explanation:

Brief Explanations

In programming (Computer Science sub - field), when a method does not return any value, the void keyword is used as the return type. double and int are data types for returning numerical values. public is an access modifier, not a return type.

Answer:

D. void