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...

how a servlet is instantiated, whether the container calls
init() or by calling any other method? please somebody reply..

Answer Posted / ashutosh

Servlet is instantiated by servlet container by calling
method Class.forName(Servlet class name).newInstance();

First of all Servlet Container looks into the
deployment descriptor(web.xml) .It looks the definition of
Servlet.And Than instantiate it by calling
Class.forName(Servlet class name).newInstance();

Is This Answer Correct ?    19 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you use javascript in servlets?

1031


Why is http protocol called as a stateless protocol?

960


What is java servlet session?

927


What are the phases of servlet life cycle?

1066


Tell us something about servletconfig interface.

955


List the Different types of servlet?

990


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

1043


Describe servlet?

989


What are the different types of servlets?

975


Is dispatcher servlet a singleton?

968


How to get the server information in a servlet?

1126


Explain the features are in servlet 3?

1020


Why do we have servlet wrapper classes?

1018


What is called servlet mapping?

1008


What is http servlet?

1028