Can a servlet access the ServletConfig of another servlet?
- It depends on the web container being used.
- No
- Only if both servlets belong to the same package.
- Yes
No, a servlet cannot directly access the ServletConfig of another servlet. Each servlet has its own ServletConfig associated with it.
Loading...
Related Quiz
- Servlets can be made thread-safe by making shared resources __________.
- How are servlet initialization parameters defined in the web.xml file?
- How can containerization aid in scaling web applications?
- What is the primary interface used for file upload in servlets?
- Thread safety in servlets can be enhanced by using _________ scoped variables instead of instance variables.