Which two statements are true?

A developer creates the following session bean:
10.©Stateless
11. @RolesAllowed(“SECRET”)
12. public class MyBean implements Mylnterface {
13. public void methodAOJ}
14. @PermitAII
15. public void methodB0 {}
16. @DenyAII
17. public void methodC0 {}
18. } No deployment descriptor is supplied.

Which two statements are true? (Choose two.)

A developer creates the following session bean:
10.©Stateless
11. @RolesAllowed(“SECRET”)
12. public class MyBean implements Mylnterface {
13. public void methodAOJ}
14. @PermitAII
15. public void methodB0 {}
16. @DenyAII
17. public void methodC0 {}
18. } No deployment descriptor is supplied.

Which two statements are true? (Choose two.)

A.
Auserin the role “SECRET” will be able to accessallof the methods.

B.
A user inthe role”FOO” will be able to accessmethodAandmethodB.

C.
A user withoutanyrolewill beable to accessmethodBbut NOTmethodA.

D.
A user in the role “SECRET”willbe able to accessmethodA andmethodB.

E.
A userintherole “SYSADM” will be abletoaccessmethodA,methodB, and methodC.



Leave a Reply 0

Your email address will not be published. Required fields are marked *