K&B p240:compiler choose old style before it choose new one,
but this get me confusing,how about this output?
public class Confusing {
private Confusing(Object o) {
System.out.println("Object");
}
// private Confusing(double[] dArray) {
// System.out.println("double array");
// }
private Confusing(double...ds ){
System.out.println("double ...");
}
public static void main(
String[] args) {
new Confusing(null);
}
}
old beat vararg? No.
//output
double ...
Somebody help!
Best,
Yue
[ December 28, 2006: Message edited by: YUE ZHU ]
[ December 28, 2006: Message edited by: YUE ZHU ]
[ January 10, 2007: Message edited by: YUE ZHU ]