What is a Constructor?
A constructor initializes an object immediately upon creation. It has the same name as the class in which it resides and is syntactically similar to a method.
Now you can think about what we need constructor for ? Suppose you need to initialize all of the variables in a class each time an instance is created but in this case it will be a tedious job for programmers.
It would be more simpler,concise and faster to have all of the setup done at the time the object is first created. The reason is initialization of objects is common tasks in Java,
Objects initialize themselves when they are created. This automatic initialization is performed through the use of constructor.