Shahir Deo wrote:Do we have a Constructors in java ?
Yes, did you mean to ask constructors in servlet?
Shahir Deo wrote:if Yes , Why do we use init to Initialize the Servlet.??
From a programmer's perspective, you only provide the servlet with the information
you want in the init() and leave the rest to the servlet container.
If you were to use the constructor, you will have more code to provide information
the servlet wants, wasting your time and lines of code.
See the difference?