I was developing the below class and when I execute the below class I get the following result..
public class Confusing {
private Confusing(Object o) {
System.out.println("Object");
}
private Confusing(double[] dArray) {
System.out.println("double array");
}
public static void main(String[] args) {
new Confusing(null);
// new Confusing((Object)null);
}
}
Output :-
double array
could you please explain why the outcome is of double array on console.