what is the diff between Servletcontext and servletconfig?
Answer Posted / srinu
servletcontext:
1) servletcontext object one for webapplication
2)it used global init parameters
3)with help servletcontext object we find our webserver
ingformation(public java.lang.String getServerInfo())
servletConfig:
1)servletConfig object will be created every servlet suppose
in my webapplication 10 servlets are their 10 servletConfig
object will be created but only one SwervletContext object
will be created
2) it is the righthand object of servlet
3)it used local init parameters
4)with help of servletConfig object we find out logical name
of servlet(public java.lang.String getServletName())
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is the use of inner class?
What is collection sort in java?
What is operator overloading. Is it is supported in java?
What is t type java?
What are the types of arrays in java?
What are inbuilt functions?
What does microservices mean?
What is type conversion in java?
What is arraylist e in java?
Why does abstract class have constructor?
What is the Concept of Encapsulation in OOPS
What is the purpose of void class?
What is final keyword?
Can we define package statement after import statement in java?
Define jit compiler?