Computer Applications
Two methods cannot have the same name in Java. (True/False)
User Defined Methods
2 Likes
Answer
False
Reason — Two or more methods can have the same name in Java if the functions are overloaded. For function overloading, many function definitions can have the same name but they must have different signatures.
Answered By
1 Like
Related Questions
What factors make two definitions with the same function name significantly different ?
How does the use of constant suffixes help avoid ambiguity when an overloaded function is called ?
We can overload methods with differences only in their return type. (True/False)
Members of a class specified as private are accessible only to the methods of the class. (True/False)