What differentiates ServletContext and ServletConfig in terms of initialization parameters?

  • ServletConfig can be used for application-wide parameters, while ServletContext is specific to a servlet.
  • ServletConfig is used for application-wide parameters.
  • ServletContext can be used for application-wide parameters, while ServletConfig is specific to a servlet.
  • ServletContext is used for servlet-specific parameters.
The ServletContext is intended for parameters that are shared across the entire application, whereas ServletConfig is specific to a particular servlet.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *