What is the use of Method Overloading in Java when it is achieved by changing the sequence of parameters in the argument list?
- by MediumOne
I was reading a Java training manual and it said that Method Overloading in Java can be achieved by having a different argument list. It also said that the argument list could differ in
(i). Number of parameters
(ii). Datatype of parameters
(iii). Sequence of parameters
My concern is about (iii).
What is the use of trying to overload a method just by changing the sequence of parameters? I am unable to think of any benefits by this way.