READ Free Dumps For Oracle- 1z0-899
Question ID 4693 | ServletContextListeners are invoked in |
Option A | A. Random order |
Option B | B. contextInitialized and contextDestroyed are invoked in the order in which they are declared in the web.xml |
Option C | C. contextInitialized method are invoked in the order in which they are declared in the web.xml and the contextDestroyed method is invoked in the reverse order in which they are declared in the web.xml |
Option D | D. contextInitialized and contextDestroyed are invoked in the reverse order of which they are declared in the web.xml |
Correct Answer | C |
Question ID 4694 | A servlet class is injected with a JDBC data source. After injection has occurred, the servlet needs to create a cache out of some of the data in the database, so as to improve responsiveness. |
Option A | A. Servlet.init() |
Option B | B. Servlet.destroy() |
Option C | C. A method annotated with @Init |
Option D | D. A method annotated with @PostConstruct |
Option E | E. A method annotated with @PreDestroy |
Option F | F. A method annotated with @Resource |
Correct Answer | A,D |