Java OCA OCP Practice Question 2386

Question

Which of the following use the Factory pattern? (Choose all that apply.)

  • a Object.equals();
  • b Calendar.getInstance()
  • c DriverManager.getDriver();
  • d Object.wait();
  • e NumberFormat.getDateInstance();


b, c, e

Note

Methods equals() and wait() in class Object don't use the Factory pattern.




PreviousNext

Related