How to know which gets invoked ?? I tried it out the string version does but how ? and also if we remove the string version the Integer Version gets invoked and removing that then the Object Version so how do we know which to choose?
Actually there is a important thing to remember. If you have overloaded methods with parameters in the same inheritance tree then the lowest level subclass will be invoked. If any other type is included then it will be ambiguous as both the types can accept the argument value.
[ SCJP 6.0 - 90% ] , JSP, Servlets and Learning EJB.
Try out the programs using a TextEditor. Textpad - Java 6 api