when a servlet sends request for first time it uses the
follwing methods
a)init
b)doget()
c)dopost()
d)service
Answer Posted / sri
when servlet gets first request, webcontainer loads the class and creates the object for it.
2)Constructor executes
3)webcontainer creates ServletConfig obj for servlet obj
4)init() method executes
5)service() method executes.
| Is This Answer Correct ? | 11 Yes | 0 No |
Post New Answer View All Answers
Explain about fail fast iterators in java?
Why do we need singleton?
how to convert Java project into Maven ?
What is the difference between static binding and dynamic binding?
What is the list interface in java programming?
Is 0 an even number?
What are jee technologies?
What is the purpose of interface?
Where are register variables stored?
Explain about wait() method?
What is classes in java?
What is the full meaning of java?
Does a function need a return?
What is matcher in java?
What do you mean by chromounits in java8?