Multiple choice technology programming languages

this() is used to invoke a constructor of the same class

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

this() is used in constructors to call another constructor of the same class (constructor chaining). It must be the first line in the constructor. This allows code reuse between overloaded constructors and avoids duplicating initialization logic.