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
List some life cycle methods of a servlet.
What is dispatcher servlet?
Why the concept of single thread model interface is used?
What are the phases of servlet life cycle?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
When servlet is loaded?
What are different methods of session management in servlets?
Difference between doget and dopost?
What do you mean by session tracking and also explain its techniques?
Explain the difference between jsp and servlet?
What is the purpose of inter-servlet communication?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify
What are the jobs performed by servlets?
Which are the different ways you can communicate between servlets?
Explain jsessionid and when is it created?