hi all,
as everybudy knows tht constructors don't return anything even void and it is return in every
java book (FACT!)
but whts tht .........
public class G111{
G111(){
System.out.println("A");
return ;}
}
i compile this and its compile as we all know tht if the method is void the compiler implicitly insert return in to it ....
my Question is if the construtors doesn't return anything so why it compiles(code above) and why all books say this non-sence tht the constructor doesn't return anything even void why?