nerdexam
Oracle

1Z0-899 · Question #11

1Z0-899 Question #11: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-899 to reveal the answer and full explanation for question #11. The question stem and answer options stay visible for context.

Question

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?

Options

  • AUser user = / / retrieves the user objects object from the database
  • BUser user = / / retrieves the User objects from the database
  • CUser user = / / retrieves the user objects object from the database
  • DUser user = / / retrieves the user objects object from the database
  • EUser user = / / retrieves the user objects object from the database
  • FUser user = / / retrieves the user objects object from the database

Unlock 1Z0-899 to see the answer

You've previewed enough free 1Z0-899 questions. Unlock 1Z0-899 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-899 Practice