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
Can we pass null as argument in java?
Is it possible for a yielded thread to get chance for its execution again?
What does the exclamation mark mean in java?
What is canonical name in java?
What is the difference between public, private, protected, and friend access?
What is serialization in java?
Are maps ordered java?
Is hashset ordered java?
What is an accessor?
Explain about java sdk?
What is meant by main method?
Which class cannot be a subclass in java?
Can we create object of static class?
How to change the priority of thread or how to set the priority of thread?
How do you add an arraylist to an array in java?