Can we write a constructor for a Servlet class ? if yes how ?
if no why not ?
Answer Posted / ravi
No..not at all,,,,servlet is a class which is dynamically
loaded...dynamically loaded class never requires
constructors.
| Is This Answer Correct ? | 8 Yes | 18 No |
Post New Answer View All Answers
What exactly are the functions of servlet?
What is a servlet-to-servlet communcation?
Servlet is pure java object or not?
What is Servlet API used for connecting database?
Explain the different ways for servlet authentication?
What mechanisms are used by a Servlet Container to maintain session information?
What is servlet lazy loading?
What do you mean by scope object and what are its types?
what is servlet chaining?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What is servlet container. how it works?
What is the importance of init() method in Servlet ?
Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?
Difference between java beans & servlets?
What are the objects involved when a servlet receives a call from client?