Answer Posted / paidi
Yes, It can possible to create the constructor inside the
servlet , it wont give any exception or error for creation
and it compile properly. But, Servlet initialization will
done by container. Container calls the init() to
initialize the servletconfg obj. No Use to write the
constructor inside the servlet.
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is load-on-startup in servlet?
How the servlet is loaded?
How do you find out what client machine is making a request to your servlet
What is the use of request dispatcher interface?
What are the different ways we can maintain state between requests?
What is the need of servlet filters?
What are the functions of an intercepting filter?
What are some disadvantages of storing session state in cookies?
Explain servlet life cycle?
What is httpservlet and how it is different from genericservlet?
Differentiate between the get and post method
Is dispatcher servlet a singleton?
What’s the use of the servlet wrapper classes??
What are the functions of the servlet container?
How are filters?