Multiple choice technology web technology

In case your application is completely based on Container Managed Persistence, would you still like to go for DAO design pattern?

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

When an application uses Container Managed Persistence (CMP), the container handles database operations automatically. Adding a DAO layer on top would be redundant since the container already provides the abstraction and CRUD functionality. The DAO pattern is most useful with Bean Managed Persistence (BMP) where you need manual control.