Can we write a constructor for a Servlet class ? if yes how ?
if no why not ?
Answer Posted / abc
you can write as like for regular class.
| Is This Answer Correct ? | 10 Yes | 12 No |
Post New Answer View All Answers
What is generic servlet class?
Is servlet a framework?
What is session tracking?
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 is the requirement of servlet config and servlet context implemented and how are they implemented?
What is getservletcontext?
Why servlet is used as controller ? Not JSP? I want complete explation?
When jsessionid is created?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
What are the drawbacks of cgi?
What is dispatcher servlet?
What are the difference between session and cookies in servlet? Explain
What is java servlet?
What is difference between cookies and httpsession?
How can the session in servlet can be destroyed?