What will be the return type of a method that not returns any value? voidintdouble None of the above
Question
What will be the return type of a method that not returns any value? voidintdouble None of the above
Solution
The return type of a method that does not return any value is void.
Similar Questions
ect answerWhat is the return type of a method that does not return any value?
What is the difference between a method that returns a value and a method that doesn't return a value? a. A method that returns a value has a return type of ``int'', while a method that doesn't return a value has a return type of ``void''. b. A method that returns a value returns a value to the caller, while a method that doesn't return a value doesn't. c. A method that returns a value can be called in a statement, while a method that doesn't return a value cannot. d. There is no difference between the two.
Suppose your method does not return any value, which of the following keywords can be used as a return type? Select one: void public double int
Select the correct answerWhat is the return type of a method that does not return any value?Optionsvoidfloatintdouble
How do you declare a method in Java that does not return any value?
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.