I am passing a null value as a parameter to a method the code is like that--
[
public class A
{
public void ob1(Object o)
{
sopln("object version");
}
public void ob1(String s1)
{
sopln("String version");
}
public static void main(string args[])
{
A a=new A();
a.ob1(null);
}
}]
we r getting the value "string version" y it is not printing "object version"? Both r objects but how the compiler treats it?
plz help me in solving this question