class MyClass
{
MyClass(Object ob)
{
System.out.println(" I belong to constructor one with Object as argument");
}
MyClass(byte[] myarray)
{
System.out.println(" I belong to constructor two with byte array as argument");
}
public static void main(
String args[])
{
MyClass obj = new MyClass(null);
}
}
On execution Why does the following code always call the constructor which takes byte array as argument?
when that constructor is commented the constructor which takes object array is used..