The this() constructor call can be used to invoke the current class constructor. It is used to reuse the constructor. In other words, it is used for constructor chaining. Following is the example for calling default constructor from parameterized constructor:
Output:
Calling parameterized constructor from default constructor:
Output: