READ Free Dumps For Oracle- 1z0-899
Question ID 4715 | Given this fragment in a servlet: |
Option A | A. Line 24 can never be reached. |
Option B | B. The deployment descriptor is NOT valid. |
Option C | C. If line 24 executes, the user’s role will be Admin. |
Option D | D. If line 24 executes, the user’s role will be Administrator. |
Option E | E. If line 24 executes, the user’s role will NOT be predictable. |
Correct Answer | D |
Question ID 4716 | Which java code snippet checks whether the user is of the role “MANAGER” for a given HttpServRequest, httpServletRequest? |
Option A | A. httpServletRequest.isUserInRole(“MANAGER”); |
Option B | B. httpServletRequest.isCallerInRole(“MANAGER”); |
Option C | C. httpServletRequest.isPrincipalInRole(“MANAGER”); |
Option D | D. httpServletRequest.isAuthnticatedUserInRole(“MANAGER”); |
Correct Answer | A |