Oracle
1Z0-860 · Question #149
Given the following stateful session bean : 10. @Stateful 11. public class VideoBean implements Video { 12. public void methodAOJ} 13. 14. @TransactionAttribute(TransactionAttributeType. SUPPORTS)…
The correct answer is C. methodC, methodD, and methodA have transaction attribute REQUIRED, and method B has. See the full explanation below for the reasoning.
Question
Given the following stateful session bean : 10. @Stateful 11. public class VideoBean implements Video { 12. public void methodAOJ} 13. 14. @TransactionAttribute(TransactionAttributeType. SUPPORTS) 15. public void methodB0 {} 16. 17. public void methodC0 {} 18. @TransactionAttribute(TransactionAttributeType. REQUIRED) 19. 20. public void methodD0 {} 21.} Assuming no other transaction-related metadata, which is true?
Options
- AmethodB and methodC have transaction attribute SUPPORTS, while methodD has transaction attribute
- BmethodA and methodC have transaction attribute REQUIRES_NEW, while methodB has transaction
- CmethodC, methodD, and methodA have transaction attribute REQUIRED, and method B has
How the community answered
(25 responses)- A4% (1)
- B12% (3)
- C84% (21)
Community Discussion
No community discussion yet for this question.