In a Java program constructor is used for object creation.With the help of new operator we create the new object for the class by calling its constructor.
When you want create an object at that time you use the constructor. The purpose of Constructor is only to create object. If you not provide Constructor then compiler create default Constructor to create object.