Can we write a constructor for a Servlet class ? if yes how ?
if no why not ?
Answer Posted / saikiran
that is one of the specification rule that
1.instantiated by constructior with no argument.
2.implementd class should be public and non-abstract.
3.should be implemnt javax.servlet.Servlet
We can Write it
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are important features of Servlet 3?
When servlet object is created?
What is war file?
Explain how to improve Servlet Performance?
What are the two important api's in for servlets?
Difference between java beans & servlets?
What is the GenericServlet class?
What are common tasks performed by Servlet Container?
What do you mean by session tracking?
What is the default http method in the servlet?
What are the steps that are required to handle the multi-threading?
How to make sure a servlet is loaded at the application startup?
How servlet is created?
Why do we need a constructor in a servlet if we use the init method?
Explain the difference between a web server and a web container?