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
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board