Hi guys.. Well can u tell me that why there is need of
"init()" , i mean why can not we initialize the servlet object
with the help of constructors?
Thank you.
Answer Posted / gaurav agrawal
If we initialize the servlet via constructor then we cant
access the ServletConfig object at the time of
initialization.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the GenericServlet class?
If servlet receives multiple requests, how many objects will it create?
What is the main purpose of java servlets?
What are the steps involved in placing a servlet within a package?
Is servlet synchronized?
What is the life cycle of a servlet?
What are the different types of servlets?
Can we refresh servlet in client and server side automatically?
What is the capacity the doget can send to the server?
Tell us something about servletconfig interface.
What is java servlet session?
What is the difference between using getSession(true) and getSession(false) methods?
What are the types of an http request?
What are the phases of the servlet life cycle?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?