nerdexam
Oracle

1Z0-805 · Question #74

In the Java SE7 API, which method is most commonly used by factories to instantiate objects? Oracle 1Z0-805 Exam

The correct answer is E. getInstance (). For example: KeyFactory.getInstance, ObjectFactory. getObjectInstance.

Java Class Design

Question

In the Java SE7 API, which method is most commonly used by factories to instantiate objects? Oracle 1Z0-805 Exam

Options

  • Anew ()
  • Bmake ()
  • Ccreate ()
  • DgetObject ()
  • EgetInstance ()
  • FcreateObject ()

How the community answered

(22 responses)
  • B
    5% (1)
  • C
    9% (2)
  • D
    9% (2)
  • E
    77% (17)

Explanation

For example: KeyFactory.getInstance, ObjectFactory. getObjectInstance.

Topics

#factory pattern#getInstance#object creation#design patterns

Community Discussion

No community discussion yet for this question.

Full 1Z0-805 Practice