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
Describe in brief RequestDespatcher?
What methods do you use in servlet - applet communication?
Describe some assignments that are executed by servlet container?
How to make sure a servlet is loaded at the application startup?
What is the dispatcher servlet?
What are session variable in servlets?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
What are the kinds of http requests?
What are the types of Session Tracking ?
What is getservletcontext?
Explain servlet life cycle?
What are the uses of servlet and what is servlet chaining?
What is a servlet-to-servlet communcation?
What are the advantages of Servlet over CGI?
How to generate the server side programming and the advantages of it over the other languages?