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
How many java versions are there?
How to write custom exception in java?
How many types of constructors are used in java?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
Which package has light weight components in java programming?
Is int primitive data type?
What are the ways to instantiate the class class?
Can a constructor call another constructor?
What language is pass by reference?
How do you convert boolean to boolean?
What are the two types of java programming?
What is package protected in java?
What is collections framework?
What is prime number in java?
Is java 11 paid version?