This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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.