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

Answer Posted / sunil

servlet container calls the init() method to create the
instance of the servlet.
The instance is created for the servlet in which the init()
method is implemented.

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the functions of Servlet container?

849


What do you mean by filter in servlet?

757


What is the difference between 2 types of servlets?

885


What are different methods of session management in servlets?

1026


Explain the working of service() method of a servlet.

726


How can I send user authentication information while making URL Connection?

766


List out the difference between ServletConfig and ServletContext?

800


How do you create a cookie using servlet?

864


Is tomcat a servlet container?

797


How can we upload the file to the server using servlet?

775


Explain the difference between a web server and a web container?

752


What do you mean by deployment descriptor?

769


What is cookie in servlet?

801


Write a program to show the functionality of doget and dopost method?

908


Write a servlet to upload file on server.

835