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
Explain url encoding in servlet?
Is tomcat a servlet container?
What is the GenericServlet class?
Explain the difference between servletconfig and servletcontext in servlet?
How do you communicate in between Applets and Servlets?
What is difference between cookies and httpsession?
How can we refresh automatically when new data is entered into the database?
What's the difference between servlets and applets?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
How can you start a jta transaction from a servlet deployed on jboss?
Why session tracking is needed?
How to make sure a servlet is loaded at the application startup?
Name the different ways of session tracking.
Explain the difference between a web server and a web container?
What are the drawbacks of cgi?