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
How do you get the ip address of the client in servlet?
Which HTTP method is non-idempotent?
What are the various ways of session supervision in servlets?
What do you mean by httpservlet?
What are the mechanisms used by a servlet container for maintaining session information?
What exception should be thrown when servlet is not properly initialized?
Explain mvc pattern.
Given the request path below, which are context path, servlet path and path info?
What are the steps that are required to handle the multi-threading?
What is meant by Servlet? What are the parameters of service method?
What is the use of welcome-file-list?
Why servlet is faster than jsp?
What is servlet in tomcat?
What are the different methods involved in generic servlet?
How do you invoke a servelt?