Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Design - Interview Questions and Answers for 'Singleton vs factory' - 1 question(s) found - Order By Newest|
|Ans. Both are creational design patterns but singleton facilitates in creation and reuse of single object whereas Factory deals with creation of multiple objects.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  Design pattern  singleton  factory  singleton vs factory Asked in 4 Companies|
|Difference between Factory and Abstract Factory Design Pattern ?|
|Difference between Factory and Builder Design Pattern ?|
|Difference between Factory and Strategy Design Pattern ?|
| Please specify in what sequence the objects of following classes will be created ?|
Session , SessionFactory, Query , Configuration
|What are the advantages and disadvantages of Factory Design Pattern ?|
|What is ThreadFactory ?|
|How many SessionFactory and Session objects are created ?|
|Which class provides the enumerated value for Bean Scope ?|
|What is a factory design pattern ?|