As per standard book constructor is a special type of function which is used to initialize objects.As constructor is defined as a function and inside class function can have on
The new operator returns a reference to the object it created.
new
new Test(); // creates an instance.
The System.out.println(this); is called after the new operator has instantiated the object
System.out.println(this);