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 do you understand by url rewriting?
Whether thread can be used in servlets?
How can an existing session be invalidated?
Explain web application directory arrangement?
What mechanisms are used by a Servlet Container to maintain session information?
What is SingleThreadModel interface?
Which is better jsp or servlet?
What do you mean by request dispatcher in servlet?
What is load-on-startup in servlet?
What are the different mode that servlets can be used?
Explain the difference between servletconfig and servletcontext in servlet?
What’s the difference between forward() and sendredirect() methods?
What is meant by a servlet?
What is the use of httpservletrequestwrapper?
What is the process to implement doget and dopost methods?