複選題
116 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. 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

答案:登入後查看
統計: A(0), B(1), C(0), D(1), E(0) #2261305