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 string builder?
How do you print array in java?
Can you instantiate the math class in Java?
Difference between object and reference?
Which is better 64 bit or 32 bit?
How many classes can any class inherit java?
Which class cannot be a subclass in java?
What is java jit compilers?
What is boolean logic?
How can a gui component handle its own events?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
Can we overload final method in java?
Can a method inside a interface be declared as final?
What is integer parseint?
What does a boolean method return?