If I attempt to overload the method flexiPrint() in a class Varargdemo then it generates a compile time error. The compiler treats the following signatures the same:
public static void flexiPrint(Object... data){}
public static void flexiPrint(Object[] data){}
Can someone explain to me why they are treated the same? I haven't been able to find the answer.