Ask Question
17 February, 14:26

Nonambiguous, overloaded methods must have the same. a) name b) number of parameters c) parameter names d) types of parameters

+4
Answers (1)
  1. 17 February, 16:13
    0
    Option (a) is the correct answer for the given question.

    Explanation:

    Method having same name but different arguments is known as method overloading. Method overloading is used to achieved the compile time Polymorphism in java.

    For example:

    void sum (int a); / / function 1

    void sum (int a, int b); / / function 2

    In this example the method name of both the function is same but different parameter. In function 1 only one integer parameter but in function 2 their are 2 integer parameter.

    So correct answer is option (a) i. e name.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Nonambiguous, overloaded methods must have the same. a) name b) number of parameters c) parameter names d) types of parameters ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers