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
Can java program run without jre?
What happens if an exception is throws from an object's destructor?
What are default methods ?
What do you mean by boolean?
Can we have multiple catch block for a try block?
Are arrays primitive data types?
What modifiers may be used with a top-level class?
Are arrays immutable in java?
Which package has light weight components?
What is the difference between processes and threads?
What is a container in a gui?
Why does my function print none?
What is object class in java?
How can we create a thread in java?
What if constructor is protected in java?