Computer Applications
We can overload methods with differences only in their return type. (True/False)
User Defined Methods
2 Likes
Answer
False
Reason — We can't overload methods with differences only in their return type. The methods must have distinct signatures as well.
Answered By
2 Likes
Related Questions
How does the use of constant suffixes help avoid ambiguity when an overloaded function is called ?
Two methods cannot have the same name in Java. (True/False)
Members of a class specified as private are accessible only to the methods of the class. (True/False)
A method declared as static cannot access non-static class members. (True/False)