Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

when a servlet sends request for first time it uses the
follwing methods
a)init
b)doget()
c)dopost()
d)service

Answer Posted / shaik baji

1)We can load the servlet class in two ways as follows:

a) We can load the servlet class while deploying our
applicaion on the server by using the "<load-on-startup>"
tag in web.xml

Ex: <load-on-startup>any positive integer </load-on-startup>

b) We can load the servlet class when the first request
came to it by the container.

2)Once the class is loaded the container will create the
instance of the servlet and initilize it with the
ServletConfig object by invoking "init(ServletConfig scObj)"

3)Then the container create a thread for the request and
execute the setvice() method.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of arrays in java?

1135


What is cr keyboard?

1345


What is comparator in java?

1068


Does java vector allow null?

1008


From the two, which would be easier to write: synchronization code for ten threads or two threads?

1107


What is Java Shutdown Hook?

1266


What is the core java?

1007


How does a cookie work in Servlets?

900


Explain about serializable interface in java?

1051


What are the different types of data structures in java?

1034


Do you need to import math in java?

1063


Why is java logo a cup of coffee?

1257


Can you override private or static method in java?

1040


Can anonymous class have constructor?

1068


What are the supported platforms by java programming language?

1089