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 is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
What are the type of protocols used in httpservlet?
Explain the lifecycle of a servlet?
What's the use of servletcontext?
How we can get ip address of client in servlet?
When should you prefer to use doget() over dopost()?
Where do you define dispatcherservlet?
How do you invoke a Servlet? What is the difference between doPost method and doGet method?
How printwriter is different from servletoutputstream?
What is the procedure for initializing a servlet?
What are the advantages of Servlet over CGI?
How to get the current httpsession object?
What's the architecture of a servlet package?
Can we refresh servlet in client and server side automatically?
How we can create war file in servlet?