Can we write a constructor for a Servlet class ? if yes how ?
if no why not ?
Answer Posted / n.l.narayana
yes., when ever the servlet is executed .,it requires
configuration.,the configuration should be done in init()
method only.,
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Explain the role of dispatcherservlet and contextloaderlistener.
Explain is servlet mapping?
What is the use of servletconfig interface?
why we should override only no-agrs init() method.
What is servlet and how it works?
What's the difference between servlets and applets?
What is http servlet?
Why do we have servlet wrapper classes?
What methods do you use in servlet - applet communication?
What are the difference between session and cookies in servlet? Explain
What is generic servlet class?
What is servlet api used for conneting database?
What is a cookie What is the difference between session and cookie
What is the difference between the include() and forward() methods?
Why is httpservlet declared abstract?