Can we write a constructor for a Servlet class ? if yes how ?
if no why not ?
Answer Posted / ravi
No..not at all,,,,servlet is a class which is dynamically
loaded...dynamically loaded class never requires
constructors.
| Is This Answer Correct ? | 8 Yes | 18 No |
Post New Answer View All Answers
How do you invoke a servelt?
How can we perform any action at the time of deploying the project?
what is servlet chaining?
How can you create a session in servlet?
Can filter be used as request or response?
What is the difference between genericservlet and httpservlet
Can we fetch the attributes related to a servlet on a different servlet?
What is the purpose of inter-servlet communication?
Why is init() method is used in servlets?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What is the functionality of actionservlet and requestprocessor?
What is servlet and its advantages?
Should I override the service() method?
What is the difference between using getSession(true) and getSession(false) methods?
What are the difference between session and cookies in servlet? Explain