Explain Method Overloading in Java.

Answer Posted / nashiinformaticssolutions

In Java, method overloading is the practice of generating several method signatures using a single method name. Method overloading can be accomplished in two ways:

Changing the quantity of arguments

Modifying the method's return type

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain throw keyword in java?

688


What are encapsulation, inheritance and polymorphism?

611


In java how do we copy objects?

639


What is role of void keyword in declaring functions?

681


What Is Query Throttling in java?

650






Is null == null in java?

743


Can you override private or static method in java?

640


How is Object Oriented Programming different from Procedure Oriented Programming?

699


What is difference overloading and overriding?

680


Is java a prime method?

629


If a variable is declared as private, where may the variable be accessed?

643


What are the four integer types supported by java?

648


Can a class be declared as static?

769


how is final different from finally and finalize in java?

687


Can inner class have constructor?

636