Constructor and it’s type in Java : Constructor is nothing but a block (Similar to method) having same name as that of class name.
Constructor does not have any return type, even not void.
The only modifiers applicable for constructor is Public, Protected, Default and Private.
It executes automatically when we create an object.

Use of Constructor:-
To initialize an object (Not to create an object).

Constructor and it’s type in Java
1) Default Constructor / No-arg Constructor
2) User define Constructer
3) Parameterized Constructor
Default Constructor / No-arg Constructor:-
Compiler is responsible to create a Default constructor.
This will be created only if user does not create constructor.
There will be Super() inside Default constructor.

User define Constructer:-
This is no argument constructor created by programmer.
In below example public Test() is the user define constructor.

Parameterized Constructor:-
This is constructor containing parameters created by programmer
In below example public Constructor(String name,int rollNo) is the parameterized constructor.

Why Constructor does not have return type?
It is used to initialize an object only.
For default constructor, compiler can’t judge about the return type of constructor.
So compiler will not create any return type for constructor.