Advertisements
Advertisements
Question
The number of values that a method can return is ______.
Options
1
2
3
4
MCQ
Fill in the Blanks
Solution
The number of values that a method can return is 1.
Explanation:
A java method can return only a single value.
shaalaa.com
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Write a method prototype name check() which takes an integer argument and returns a char:
A method which does not modify the value of variables is termed as ______.
Method prototype for the method compute which accepts two integer arguments and returns true/false.
Assertion(A): An argument is a value that is passed to a method when it is called.
Reason(R): Variables which are declared in a method prototype to receive values are called actual parameters.