method overloading in java language
Answer (1)
Suppose you have to perform addition of the given numbers but there can be any number of arguments, if you write the method such as a(int,int) for two parameters, and b(int,int,int) for three parameters then it may be difficult for you as well as other programmers to understand the behavior of the method because its name differs.
Comments (0)
Related Questions
static meaning in java language
65 Views
methods overriding in java language
40 Views
avoid inheritance in java language
59 Views
packages offered in java language
28 Views




