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
What is the difference between context parameter and context attribute?
What is cookies in servlet with example?
List some life cycle methods of a servlet.
Which event is fired at the time of setting, getting or removing attribute from application scope?
Whether thread can be used in servlets?
Differentiate between the print writer and servlet output stream?
Which are the different ways you can communicate between servlets?
What if you need to span your transaction across multiple servlet invocations?
Can you send an authentication error from a servlet?
What are the difference between session and cookies in servlet? Explain
Which interface should be implemented by all servlets?
What do you mean by web applications? Explain web application directory arrangement?
What is load-on-startup in servlet?
What is string tokenizer?
What is the use of httpservletresponsewrapper?