Oracle
1Z0-899 · Question #185
1Z0-899 Question #185: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-899 to reveal the answer and full explanation for question #185. The question stem and answer options stay visible for context.
Question
Which java code snippet roles "MANAGER" and "EMPLOYEE" in a given application? @DeclareRole("EMPLOYEE") public class MyServlet extends HttpServlet {}
Options
- A@DeclareRoles({ "MANAGER", "EMPLOYEE" })public class MyServlet extends HttpServlet {}
- B@SecurityRoles({ "MANAGER", "EMPLOYEE" })public class MyServlet extends HttpServlet {}
- C@DeclareRoles("MANAGER")
- D@DeclareRole("MANAGER")
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.