nerdexam
Oracle

1Z0-809 · Question #215

1Z0-809 Question #215: Real Exam Question with Answer & Explanation

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

Question

Given the code fragment: // Login time:2015-01-12T21:58:18.817Z instant loginTime = Instant.now(); Thread.sleep(1000); // Logout time:2015-01-12T21:58:19.880Z instant logoutTime = Instant.now(); loginTime = loginTime.truncatedTo(ChronoUnit.MINUTES); // line n1 logoutTime = logoutTime.truncatedTo(ChronoUnit.MINUTES); if (logoutTime.isAfter(loginTime)) System.out.println("Logged out at:"+logoutTime); else System.out.println("Can't logout"); What is the result?

Options

  • AA compilation error occurs at line n1.
  • BLogged out at: 2015-01-12T21:58:19.880Z
  • CCan't logout
  • DLogged out at: 2015-01-12T21:58:00Z

Unlock 1Z0-809 to see the answer

You've previewed enough free 1Z0-809 questions. Unlock 1Z0-809 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-809 Practice