Advertisements
Advertisements
Question
A method can return ______ (one/multiple) variables.
Fill in the Blanks
Advertisements
Solution
A method can return one variables.
Explanation:
A method can return only one value using the return statement.
If multiple values are needed, they can be returned by using an array or an object.
shaalaa.com
Is there an error in this question or solution?
