阿摩線上測驗 登入

試題詳解

試卷:無年度 - 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

111 Users of your web application have requested that they should be able to set the duration of their sessions. So for example, one user might want a webapp to stay connected for an hour rather than the webapp's default of fifteen minutes; another user might want to stay connected for a whole day. Furthermore, you have a special login servlet that performs user authentication and retrieves the object from the database. You want to augment this code to set up the user's specified session duration. Which code snippet in the login servlet will accomplish this goal?
(A) User user = / / retrieves the user objects object from the databasesession.setDurationInterval (user.getSessionDuration());
(B) User user = / / retrieves the User objects from the databasesession.setInactiveInterval (user.getSessionDuration());
(C) User user = / / retrieves the user objects object from the databasesession.setInactiveInterval (user.get.SessionDuration());
(D) User user = / / retrieves the user objects object from the databasesession.setDuration (user.getSessionDuration());
(E) User user = / / retrieves the user objects object from the databasesession.setMaxInactiveInterval (user.getSessionDuration());
正確答案:登入後查看