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
Explain the difference between an Interface and an Abstract class?
What is string in java is it a data type?
What are the types of exceptions?
Write a code to create a trigger to call a stored procedure
Explain about java sdk?
What about main() method in java ?
How many arguments can a method have java?
Write a program to solve producer consumer problem in java?
Why are constructors used?
How does singleton class work?
What is the difference between arraylist and hashset in java?
What is difference between protected and private?
What does percent mean in java?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
What is a java predicate?