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

Answers were Sorted based on User's Feedback



when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)do..

Answer / 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

when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)do..

Answer / 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

when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)do..

Answer / 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

when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)do..

Answer / giftleejones

a)init

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

how are methods defined?

0 Answers  


How the elements are organized in GridLayout?

2 Answers  


How does callback work in java?

0 Answers  


How do you create a sop?

0 Answers  


What is the ResourceBundle?

2 Answers   Elementus Technologies,


Can a class be protected in java?

0 Answers  


What comes to mind when someone mentions a shallow copy in java?

0 Answers  


What does  mean in regex?

0 Answers  


what is default layout of JFrame class?

6 Answers  


Is void a keyword in java?

0 Answers  


Hi Every One I Have Small Doubt Please answer This???????????????????????????? I Want to use AbstractList class methods(java.util.AbstractList) My Program is import java.util.*; class DemoOne extends AbstractList { public static void main(String[] args) { AbstractList a=new DemoOne();//This One is Correct?? DemoOne a1=new DemoOne();//This One is Correct?? Both Are Not Working System.out.println("Hello World!"+a); System.out.println("Hello World!"+a1); } } Error IS: DemoOne.java:2: DemoOne is not abstract and does not override abstract method get(int) in java.util.AbstractList class DemoOne extends AbstractList AnyOne can Please Provide The Solution????????????????????????? Plzzzzzzz

3 Answers  


What are adapter classes?

0 Answers  


Categories