when the webcontainer creates ServeletConfig,ServletContext
objects? befoure creating the Servlet object or not?

Answer Posted / durga ganesh reddy

Just by receiving a request, the web container creates
ServletContext object(so it is called asapplication
object).After creating servlet object then ServletConfig
object will be created.For each servlet instance there will
be a ServletConfig istance is available separtely.

Is This Answer Correct ?    11 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can the session in servlet can be destroyed?

715


What do you mean by session tracking and also explain its techniques?

504


What's the architecture of a servlet package?

560


What is the difference between context parameter and context attribute?

535


Whether thread can be used in servlets?

732






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

659


How does java thread pool work?

550


Describe in brief RequestDespatcher?

596


What are some disadvantages of storing session state in cookies?

593


What exactly is a servlet?

547


How to make sure a servlet is loaded at the application startup?

560


What is ServletConfig object?

612


Why do we need a constructor in a servlet if we use the init method?

522


What is servlet and list its types?

546


What is the use of send redirect () method?

590