Java OCA OCP Practice Question 410

Question

Which are true of design patterns? (Choose all that apply.)

  • A. Design patterns are chunks of code you can copy into your application unchanged
  • B. Design patterns are conceptual reusable solutions
  • C. Design patterns are shortcuts to talking about code
  • D. There are three design patterns defined for Java
  • E. You can only use each design pattern once per application
  • F. Design patterns are libraries you can call from your code


B and C are correct.

Note

Design patterns are conceptual and design level.

You have to code the implementation for each use.

D is incorrect because there are dozens of patterns defined for Java.

Only three of them are tested on the exam, but you should be aware that more exist.

E is incorrect because it makes sense to reuse the same pattern.

For example, you might have multiple DAO objects.




PreviousNext

Related