This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
You can't invoke a Constructor explicitly, instead use "this()" within the same class or "super()" for invoking a super class Constructor, also you may pass any arguments indicating which one to invoke.
hi, Constructors cannot be called explicitly.to make your code work properly make #2 as
Joined: Jan 28, 2008
To invoke the constructor from a constructor use this() for current class constructor if it is of parameterised then pass arguments to it or super() if you want to call a super class constructor and one of these statements should be first line of code.