What is the purpose of having the concept of overloading?

Answer Posted / siddhart prasad

Method overloading is used when objects are required to perform similar rasks but with different input parameters.....i think soo.....:-)......when we call a method in an object, java use to match the method name first as well as the no. and different typs of parameters to decide which one of da definitions to execute....the process is known as #static_polymorphism.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java a digit method?

508


What is class forname used for?

533


How are variables stored?

527


Why can't you declare a class as protected?

589


What are the 8 data types in java?

517






What is number data type in java?

546


When to use runnable interface vs thread class in java?

514


Explain an intermediate language?

503


Does apple use java?

489


Explain thread life cycle in java?

581


What is Java Package and which package is imported by default?

589


Write a program to check string is palindrome without using loop?

561


Which is the best sorting technique in java?

515


What is the difference between @before and @beforeclass annotation?

526


Why chararray() is preferred over string to store the password?

522