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
Java is pass by value or pass by reference? Explain
Why does java doesnt suuport unsigned values?
How do you check if two given string are anagrams?
How do you download stubs from Remote place?
How many boolean functions are there?
How to display all the prime numbers between 1 and n (n is the number, get the input from user)
What java is used for?
What is busy spin, and why should you use it?
What is lambda in java?
Define how does a try statement determine which catch clause should be used to handle an exception?
What is the base class in java from which all classes are derived?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
how to create constants in java?
What does string mean in java?
Explain the scope or life time of class variables or static variables?