ICSE Class 10 Computer Applications Question 27 of 43

User-Defined Methods — Question 27

Back to all questions
27
Question

Question 25

Two methods cannot have the same name in Java. (True/False)

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.