What is method overloading in Java?

: 165
Paper : Java FAQ (Frequently Asked Questions and answers) for freshers | Platform : Object-oriented programming Language | Category : Programming FAQs

Method overloading is a type of polymorphism. Polymorphism allows you to create methods with the same name. There is two way through which you can implement the method overloading:

  • change the number of arguments.
  • change the data type of parameter.