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 do you mean by ordered and sorted in collections in java?

999


What are constructors in java?

1123


Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

1014


What is quick sort in java?

1021


Are static members inherited to sub classes?

1147


Can inner class extend any class?

1061


what is the difference between future and callable interface in java?

1245


Why is core java important?

1047


What is operator overloading. Is it is supported in java?

1037


I want to print “hello” even before main is executed. How will you acheive that?

1099


How to Sort Strings which are given in List and display in ascending order without using java api.

4444


Which methods are used during serialization and deserialization process?

996


Can we able to pass objects as an arguments in java?

1027


Can we define a package statement after the import statement in java?

1076


What is the difference between state-based unit testing and interaction-based unit testing?

944