07: When to use a ServletContextListener in Java EE? Understanding ServletContext and ServletContextListener with examples

A ServletContext object refers to the whole web application, whilst a ServletConfig is for a Servlet. Once an application is deployed onto the web application, ServletContextListener may be configured using annotations or the configuration file named web.xml. A ServletContext object…

Prepare to fast-track & go places

Answers are detailed to be useful beyond job interviews. A few Q&As each day will make a huge difference in 3 to 24 months depending on your experience.