What is the purpose of having the concept of overloading?

Answer Posted / narendra

Method overloading is one of the ways that Java implements
polymorphism. It allows related methods to be accessed by
use of a common name. Use it when you actually do need
multiple methods with different parameters, but the methods
do the same thing.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define max and min heap, also the search time of heap.

580


How do I remove a character from a string in java?

492


Can we compare two strings in java?

554


What is core java used for?

503


What is the difference between Error, defect,fault, failure and mistake?

650






Do I need java for windows 10?

540


Why Java doesn’t support multiple inheritance?

627


What is the purpose of the System class?

573


Difference between comparator and comparable in java?

606


Can set contain duplicates?

538


Which package has light weight components?

554


What is static class

610


What is files manifesting?

1720


What are singleton services?

485


Are variables stored in ram?

547