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

Can a final method be overloaded?

737


What are the benefits of java?

811


What is the base class of all exception classes in java?

812


Enlist few advantages of inheritance?

860


What is try-with-resources in java?

869


Is null a value?

799


Does java support Operator Overloading?

837


What is difference between jdk,jre and jvm?

828


What is hashset in java?

799


What is assembly used for?

792


What is == in java?

787


What function extracts specified characters from a string?

775


What is void data type?

769


What do you mean by light weight and heavy weight components?

772


Can we initialize the final blank variable?

834