[Edit: non-English text elided. Please post only English.]
Refer to which methods to choose in overloading.
in my opinion.
First of all, the compiler consider exact the same.
the method's name must be the same,then the parameters's number must be the same,then the location and parameters type must be the same.
If all of these is the same, then choose this methods.
If there's implicit conversion.
It follow the
(byte,char,short)->int->long->float->double
to judge the parameters.
If there's reference types.
First find the reference type,the find whether is the subclass of the reference type.
In J2SE 5.0, there's auto-boxing. Then to judge the parameters.
[ July 17, 2008: Message edited by: Bear Bibeault ]
[ July 17, 2008: Message edited by: Bear Bibeault ]