what is the diff between Servletcontext and servletconfig?

Answer Posted / srinivasa

Every web application has only one SContext object.
There are n number of SConfig objects in an Web app where
n is the number of servlets. It is specific to a servelt.
ServletContext is used to get the context parameters.
ServletConfig is used to get to the init parameters.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does i ++ mean in Java?

711


What is lambda programming?

709


What is connection class in java?

731


What are pass by reference and pass by value?

707


Does chrome use java?

721


How can u increase the heap size in the memory?

774


Explain what is encapsulation?

824


What is the difference between C++ and Java and your preferences?

851


Does every java program need a main?

764


When do we use hashset over treeset?

759


How do you find the maximum number from an array without comparing and sorting?

873


Is java programming easy?

744


What does this () mean in constructor chaining concept?

817


what is meant wrapper classes?

825


Give an example of call be reference significance.

805