无参数构造函数会抛出错误,因为编译器不知道要调用哪个构造函数。解决办法是什么?
private Test() throws Exception {
this(null);//THIS WILL THROW ERROR, I WAN'T TO CALL A SPECIFIC CONSTRUCTOR FROM THE TWO BELOW. HOW TO DO??
}
private Test(InputStream stream) throws Exception {
}
private Test(String fileName) throws Exception {
}