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
What are the different mode that servlets can be used?
What is the life cycle of a servlet?
Why HttpServlet class is declared abstract?
What are the uses of servlet
What are Servlets?
What is difference between get and post method?
How can we invoke another servlet in a different application?
What do you mean by servlet?
Explain session tracking and its importance?
Is servlet a framework?
Why are servlets used?
What is webservlet?
What are the features added in Servlet 2.5?
When jsessionid is created?
Which java framework is most popular?