public void getData(Object o[]) {
System.out.println("In Side Array");
}
public void getData(Object o) {
System.out.println("In Side Object");
}
public static void main(String[] args) {
new JavaEx().getData(null);
}
Here it's printing Array block why, Why it's not printing Object block?