問題詳情

116 A servlet class is injected with a JDBC data source. After injection has occurred, the servletneeds to create a cache out of some of the data in the database, so as to improve responsiveness.Which two methods can host the cache creation code? (Choose two)
(A) Servlet.init()
(B) Servlet.destroy()
(C) A method annotated with @Init
(D) A method annotated with @PostConstruct
(E) A method annotated with @PreDestroy

參考答案

無參考答案

內容推薦

內容推薦