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)- B5% (1)
- C9% (2)
- D9% (2)
- E77% (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.