Q2
What is the purpose of method overloading in Java?
A.
Creating static methods
B.
Hiding methods in a superclass
C.
Redefining methods in a subclass
D.
Defining multiple methods with the same name but different parameters
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board