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


Please Help Members By Posting Answers For Below Questions

What is the += operator called?

575


what is meant wrapper classes?

600


Why synchronization is important?

584


When should I use a singleton?

552


What is an off by one error in java?

494






What is mysql driver class name?

547


What are drawbacks of singleton class?

518


What is the symbol for space?

558


Is multiple inheritance supported by java?

502


Can we have any code between try and catch blocks?

553


Can we create constructor in abstract class ?

574


Is int primitive data type?

501


What is a programming object?

550


Which container method is used to cause a container to be laid out and redisplayed in java programming?

592


Is zero a positive integer?

527