What is process of defining two or more methods within same class that have same name but different parameters declaration?
A. method overloading
B. method overriding
C. method hiding
D. None of the mentioned
Answer:A
What is process of defining two or more methods within same class that have same name but different parameters declaration?
A. method overloading B. method overriding C. method hiding D. None of the mentioned
Explanation: Two or more methods can have same name as long as their parameters declaration is different, the methods are said to be overloaded and process is called method overloading. Method overloading is a way by which Java implements polymorphism.