when a servlet sends request for first time it uses the
follwing methods
a)init
b)doget()
c)dopost()
d)service
Answer Posted / sowmya
A servlet can receive a request or forward the request to
another component in an application.
When a servlet receives a request, if it is already
initialized, then the service() method is called. If not
then its constructor is called and then its init() method.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is namespace in java?
How do you reverse a string in java without using string buffer?
What advantage do java's layout managers provide over traditional windowing systems?
List down the methods and interfaces of collection class in java.
Explain oops concepts in detail?
What are the special characters?
What is the difference between an interface and an abstract class?
Is ++ operator thread-safe in java?
Discuss different types of errors that generally occur while programming.
What is the difference between logical data independence and physical data independence?
What is hashing principle in java?
Is arraylist sorted in java?
What is the purpose of static methods and static variables?
Does treeset allow null in java?
When can we say that threads are not lightweight process in java?