Interview :: Servlets
21) What is load-on-startup in servlet?
22) What if we pass negative value in load-on-startup?
23) What is war file?
24) How to create war file?
25) What are the annotations used in Servlet 3?
There are mainly 3 annotations used for the servlet.
- @WebServlet : for servlet class.
- @WebListener : for listener class.
- @WebFilter : for filter class.
28) Which event is fired at the time of setting, getting or removing attribute from application scope?
ServletContextAttributeEvent.