Advertisements
Advertisements
Question
A method may be associated with:
Options
Return
Call
Promote
None
MCQ
Solution
Return
Explanation:
A Java method can include a return statement that returns a value to the calling function. The method's return type describes the type of value that will be returned. If a method returns no value, it is declared as void.
shaalaa.com
Is there an error in this question or solution?