阿摩線上測驗 登入

試題詳解

試卷:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899 (101-132)#84682 | 科目:OCE

試卷資訊

試卷名稱:無年度 - Java EE 6 Web Component Developer Certified Expert Exam:1z0-899 (101-132)#84682

科目:OCE

122 In your web application, you need to execute a block of code whenever the session object is first created. Which design will accomplish this goal?
(A) Create an HttpSessionListener class and implement the sessionInitialized method with that block of code.
(B) Create an HttpSessionActivationListener class and implement the sessionCreated method with that block of code.
(C) Create a Filter class, call the getSession(false) method, and if the result was null, then execute that block of code.
(D) Create an HttpSessionListener class and implement the sessionCreated method with that block of code.
(E) Create a Filter class, call the getSession(true) method, and if the result was NOT null, then execute that block of code.
正確答案:登入後查看