Why that...?
Hi all...
I have an interesting questing..,
Suppose U have a class with 2 overloaded method like this:
public void omethod(String param){
System.out.println("from string");
}
public void omethod(Object obj) {
System.out.println("from object");
}
Ok...from main when u call omethod(null) you get the message from string
Anywone knows why?
LOOP
|