Vidyalelo
Java Programming · Q20

Overriding and Overloading

Programming · Java Programming · question 20

Q20

In method overloading, can methods have the same name and the same return type if their parameter types are different?

A.
Yes, as long as the methods are final
B.
Yes, as long as the methods are static
C.
No, it is not allowed
D.
Yes, it is allowed
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board