It is generaly useful to think of overloaded methods as different methods altogether and then try to deduce the answer. For eg.
Technically, for the compiler and JVM, void m1(){} and void m1(int i){} are as different (or same!) as
void a(){} and void b() {}.
The reason is, it is the method signature that the compile/jvm looks for. And method signature includes method name and parameter list.
HTH,
Paul.
------------------
SCJP2 Resources, Free Question A Day, Mock Exam Results and More!
www.jdiscuss.com Get Certified, Guaranteed!
www.enthuware.com/jqplus
Your guide to
SCJD exam!
www.enthuware.com/jdevplus