Kish please Use Code Tags when you post a source code. That way your code looks formatted. Unformatted code is hard to read. You can add code tags by wrapping your code in [code] [/code] tags. You can edit your message using button and then add code tags to it...
Double is subclass of Object so as Raju said Double is more specific than Object and will be chosen but Double and Integer both extends Number they dont have any superclass-subclass relation, Infact they both are same level classes so there is ambiguity. If you had methods with Number and Double or Integer and Double then there would be no ambiguity.
I hope I am clear.
SCJP 1.6 96%
Joined: Dec 10, 2009
If you had methods with Number and Double or Integer and Double then there would be no ambiguity.
Neha is it Number and Double or Number and Integer...........