READ Free Dumps For Oracle- 1z0-899
Question ID 4643 | 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. |
Option A | A. User user = / / retrieves the user objects object from the database session.setDurationInterval (user.getSessionDuration()); |
Option B | B. User user = / / retrieves the User objects from the database session.setInactiveInterval (user.getSessionDuration()); |
Option C | C. User user = / / retrieves the user objects object from the database session.setInactiveInterval (user.get.SessionDuration()); |
Option D | D. User user = / / retrieves the user objects object from the database session.setDuration (user.getSessionDuration()); |
Option E | E. User user = / / retrieves the user objects object from the database session.setMaxInactiveInterval (user.getSessionDuration()); |
Option F | F. User user = / / retrieves the user objects object from the database |
Correct Answer | E |
Question ID 4644 | Which interface must a class implement so that instances of the class are notified after any object added to a session? |
Option A | A. javax.servlet.http.HttpSessionListener |
Option B | B. javax.servlet.http.HttpSessionValueListener |
Option C | C. javax.servlet.http.HttpSessionBindingListener |
Option D | D. javax.servlet.http.HttpSessionAttributeListener |
Correct Answer | D |