What is the use of Method Overloading in Java when it is achieved by changing the sequence of parameters in the argument list?

Posted by MediumOne on Stack Overflow See other posts from Stack Overflow or by MediumOne
Published on 2011-01-07T04:05:04Z Indexed on 2011/01/07 5:53 UTC
Read the original article Hit count: 213

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about java

Related posts about method-overloading