Java - Constructors
Which of the following is the correct way to use
this to call another constructor in the same class?this to call another constructor in the same class?this(); as the first statement.super(); calls superclass constructor, this.call(); is invalid syntax, and call(this); is not a constructor call.this(); [OK]this(); to call another constructor [OK]super(); instead of this();this(); not as first statement15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions