Discussion Forum : Introduction To Methods And Streams
Question -

What is process of defining two or more methods within same class that have same name but 

different parameters declaration?

Options:
A .  method overloading
B .  method overriding
C .  method hiding
D .  None of the mentioned
Answer: Option A

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.



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *