READ Free Dumps For Oracle- 1z0-804
Question ID 21437 | Given: What two changes should you make to apply the DAO pattern to this class? |
Option A | Make the Customer class abstract. |
Option B | Make the customer class an interface. |
Option C | Move the add, delete, find, and update methods into their own implementation class. |
Option D | Create an interface that defines the signatures of the add, delete, find, and update methods. |
Option E | Make the add, delete, and find, and update methods private for encapsulation. |
Option F | Correct Answer: C,D Explanation:
|
Correct Answer | F |
Question ID 21438 | Given: What two changes should you make to apply the DAO pattern to this class? |
Option A | Make the Customer class abstract. |
Option B | Make the customer class an interface. |
Option C | Move the add, delete, find, and update methods into their own implementation class. |
Option D | Create an interface that defines the signatures of the add, delete, find, and update methods. |
Option E | Make the add, delete, and find, and update methods private for encapsulation. |
Option F | Correct Answer: C,D Explanation: public String getId() { return this.id; } |
Correct Answer | F |