Method overloading has multiple methods by same name but different parameters - Core Java

Q.  If a class has multiple methods by same name but different parameters, it is known as?
- Published on 13 Jul 15

a. Constructor overloading
b. Method overloading
c. Operator overloading

ANSWER: Method overloading
 

    Discussion

  • Rupesh Bharuka   -Posted on 30 Sep 16
    Yeah. Method Overloading can also be called as Static Or Compile time polymorphism. In method overloading there are multiple methods which has same purpose but with different names and signatures.

    Note : In method overloading return type doesn't matters but what matters is method name, method parameters, sequence of parameters.

    Thank you.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)