Hey dear It will print only that "In Simple Constructor". But well why see as long as U don't specify any return type even void with a constructor it is constructor. But when U specify a return type with a constructor it is no longer constructor it is just a memeber function of that class having duplicate name as constructor. Did U understood? Hop U will get . By then tack care pls
yes it will not remain any more as constructor if we write the void type before it , because a constructor is having a class name with no return type specified , other wise it will become a method
It is possible to have a method with the same name as constructor because JVM uses different name spaces for methods and constructor. The one with return type is considered as method.