Is there any differance b/w getting servlet context from
servlet config and session? if yes then what is that?
Answer Posted / katamraju
Yes, some difference is there b/w servletconfig , servlet
context and session.
ServletContext:This is an interface created by webcontainer
based on class provided by webcontainer wendor,the
webcontainer will be create ServletContext Obj for the whole
web-application.
ServletConfig:This also an inteface and created by
webcontainer based on class provided by webcontainer vendor,
webcontainer creates servlet config obj forevery resource
that is available in webapplication.
session:session can be used to develop stateful application.
Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What must be implemented by all servlets?
Why filter is used in servlet?
What do you mean by chaining in servlet?
Is servlet a framework?
What are the life cycle methods of a servlet?
How to notify an object in session when session is invalidated or timed-out?
Why is httpservlet declared abstract?
What is the disadvantage of cookies?
Explain jsessionid and when is it created?
What do you mean by default initialization in java servlet?
What is generic servlet class?
What are the steps that are required to handle the multi-threading?
What do you mean by the servlet chaining?
What is the need of session tracking in web application?
How do you design microservices?