ProAnswers.org

Can we write a constructor for servlet ?

Yes. But the container will always call the default constructor only. If default constructor is not present , the container will throw an exception.