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


Which method the Servlet container call to create the
instance of the servlet?

Answers were Sorted based on User's Feedback



Which method the Servlet container call to create the instance of the servlet?..

Answer / ravikiran(aptech mumbai)

After The successfull parsing of web.xml container will find
the particular class name which is mapped in web.xml and calls
class.forName(classname).newInstance() method.Then calls
init(ServletConfig config) of GenericServlet for
initializing the instance of the servlet.

Is This Answer Correct ?    35 Yes 1 No

Which method the Servlet container call to create the instance of the servlet?..

Answer / m.gangadhar from sathya techno

The ServletContainer is used default zero argument
constructor to create servlet instance then after it calls
init(ServletConfig cg) it internally calls init()for
initialization puposes.


Plz guys init() is not used for creation of servlet instance

Is This Answer Correct ?    26 Yes 2 No

Which method the Servlet container call to create the instance of the servlet?..

Answer / naveen kumar bandi

to create an instance of servlet servlet container calls
newInstance() method

Is This Answer Correct ?    20 Yes 3 No

Which method the Servlet container call to create the instance of the servlet?..

Answer / priyanjan

Servlet container invokes the init() method to create the
instance of servlet.

Is This Answer Correct ?    18 Yes 11 No

Which method the Servlet container call to create the instance of the servlet?..

Answer / pintu debnath

init() method is only used to initialize a servlet, and it
is called after the servlet instance has been created.

Is This Answer Correct ?    12 Yes 5 No

Which method the Servlet container call to create the instance of the servlet?..

Answer / ravikiran.chd

class.forName(classname).getInstance()

Is This Answer Correct ?    6 Yes 1 No

Which method the Servlet container call to create the instance of the servlet?..

Answer / samik bandyopadhyay

The init() method is only used to initialize an existing
servlet instance before it starts providing service to
requests, it's never used for creating a servlet instance.
I'm searching for the method which creates the servlet
instace. But I can assure that we can't create a servlet
instace, it's done by the container.

Is This Answer Correct ?    8 Yes 4 No

Which method the Servlet container call to create the instance of the servlet?..

Answer / kishore

servlet container calls the init() method to create servlet
instance

Is This Answer Correct ?    13 Yes 10 No

Which method the Servlet container call to create the instance of the servlet?..

Answer / priyanjan

servlet container creates the init() method

Is This Answer Correct ?    17 Yes 15 No

Which method the Servlet container call to create the instance of the servlet?..

Answer / deepak jenamani

servlet container calls the Class.instanceOf() method
to create a instance of servlet.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More Servlets Interview Questions

What is the directory structure of a war file?

0 Answers  


What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?

0 Answers  


Hi Friends, Suppose you have a web appliction which consists of 100 clients are connected with Connection pooling and they are associated with 100 connection objcet and connected with DB sever,Due some problem DB-Server suddenly crashed and server came to down state for a while after few minutes DB-server once again up,Now how will I manage my Pool Management with my 100 clients...can any one tell me??????????????????

3 Answers   ProgressSoft,


Which exception is thrown if the servlet is not initialized properly?

0 Answers  


What do you understand by mime type?

0 Answers  


Which method of the httpservletrequest object is used?

0 Answers  


How values can be passed from HTML page to servlet?

7 Answers   ABC,


What must be implemented by all servlets?

0 Answers  


What is the purpose of dispatcherservlet properties?

0 Answers  


Is tomcat a servlet container?

0 Answers  


Which event is fired at the time of setting, getting or removing attribute from application scope?

0 Answers  


What methodology can be followed to store more number of objects in a remote server?

0 Answers  


Categories