Can we define constructor in Servlet class?
Answer Posted / sanjeev kumar
We never can create the Servlet instance. hence there is no
chance of having constructor in servlets. Servlet life
cycle methods (init(), service(), destoy())are called by
the servlet container.
| Is This Answer Correct ? | 4 Yes | 8 No |
Post New Answer View All Answers
Given the request path below, which are context path, servlet path and path info?
What is cgi and what are its drawbacks?
What is Client-Server Computing?
How do I use cookies to store session state on the client?
What is a web container and what is its responsibility?
What do you mean by servlet context?
What is a servlet engine?
Who is responsible to create the object of servlet?
What is the type of method for sending request from http server?
Can filter be used as request or response?
What is the difference between context parameter and context attribute?
Explain is servlet mapping?
How would you create deadlock on your servlet?
What do you mean by request dispatcher in servlet?
What are the phases of a servlet life cycle?