Can we write a constructor for a Servlet class ? if yes how ?
if no why not ?
Answer Posted / n.l.narayana
yes., when ever the servlet is executed .,it requires
configuration.,the configuration should be done in init()
method only.,
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is servlet configuration?
What is the life cycle of a servlet?
What is the use of welcome-file-list?
How do you design microservices?
What mechanisms are used by a Servlet Container to maintain session information?
What are the annotations used in servlet 3?
What do you mean by default initialization in java servlet?
What is Request Dispatcher?
Can servlet have a constructor ?
Why is servlet used?
How do I use cookies to store session state on the client?
If my browser does not support cookie, and my server sends a cookie instance what will happen?
What is called Session Tracking?
How do cookies work in servlets?
Explain servlet.