A constructor can call another overloaded constructor using the keyword in Java.
A) super
B) local
c) con
D) this
Answers
Answered by
7
A constructor can call another overloaded constructor using this keyword in Java.
Answered by
0
A constructor can call another overloaded constructor using this keyword in Java. Option(d) is the correct answer.
- The keyword "this" is a referencing variable that can be used in constructors and methods to refer to the object we are using currently.
- It's typically used to avoid confusion between characteristics and parameters with the same names.
- It could also be used to trigger or invoke the overloaded constructor from other constructors.
Similar questions