Multiple choice general knowledge science & technology

using which we can pass variables to the other constructor from the constructor in the same class ?

  1. this

  2. super

  3. this()

  4. super()

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

In Java, this() is used to call one constructor from another constructor in the same class. It must be the first statement in the constructor body. 'this' alone refers to the current object instance, while 'super' and 'super()' are used for parent class references and constructors respectively.