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
Explain load on start-up and its importance?
Should I override the service() method?
Can we override destroy method in servlet?
Which interface must be implemented by all servlets?
What are the different methods of session management in servlets?
What is the use of request dispatcher interface?
What are the life cycle methods of a servlet?
How do you configure a centralized error handler in servlets?
What’s the difference between genericservlet and httpservlet?
What is a cookie What is the difference between session and cookie
Why HttpServlet class is declared abstract?
What is the default http method in the servlet?
What is servlet and its advantages?
What do you mean by cgi in servlet?
What are the steps that are required to handle the multi-threading?