Ask Question
1 March, 01:39

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

+5
Answers (1)
  1. 1 March, 01:52
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers