This was the question asked in interview.
Can we call one constructor from another if a class has multiple constructors in java and when?How can I call I mean syntax?
This was the question asked in interview. Can we call one constructor from another
Share
You can, and the syntax I know is
You can also call a super class’ constructor through
Both such calls can only be done as the first statement in the constructor (so you can only call one other constructor, and before anything else is done).