upto my knowledge there is no return type need to be specified for constructor. if i specified in a program, it is working without
showing an error at compile or runtime. why it so?
class Test {
int Test() {
return 1;
}
public static void main(String args[]) {
Test t = new Test();
}
}
thanks in advance