Constructors has the same name as the class name.
Constructors are used for allocating memory space for variables.
Its include parameter and Its invoked by new operator.
Constructors have no return type.
If there is no constructor in your class, default constructor automatically created.
You might want to google for 'finalize()' method. It is the closest thing to destructors that Java has got. Of course, it has its limitations, so it is strongly advised that you read about it well, before attempting to rely on it.
Aditya Jha wrote: . . . 'finalize()' . . . has its limitations . . .
Very wise warning There is a section about it in Effective Java by Joshua Bloch, which you might be able to find as a sample chapter free of charge on the net (old edition).
Bloch recommends using finalize() only for cleaning up native resources, ie those written in C/C++ or other non-Java™ languages.