nerdexam
Oracle

1Z0-899 · Question #188

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

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

Question

Given this fragment in a servlet: 23. if(reg.isUserInRole("Admin")) { 24. // do stuff 25. } And the following fragment from the related Java EE deployment descriptor: 812. <security-role-ref> 813. <role-name>Admin</role-name> 814. <role-link>Administrator</role-link> 815. </security-role-ref> 900. <security-role> 901. <role-name>Admin</role-name> 902. <role-name>Administrator</role-name> 903. </security-role> What is the result?

Options

  • ALine 24 can never be reached.
  • BThe deployment descriptor is NOT valid.
  • CIf line 24 executes, the user's role will be Admin.
  • DIf line 24 executes, the user's role will be Administrator.
  • EIf line 24 executes, the user's role will NOT be predictable.

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