Difference between Singleton and Factory Design Pattern ?

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.
Label / Company      Label / Company / Text


Java - Interview Questions and Answers

 Q1. Difference between Singleton and Factory Design Pattern ?Design2017-02-02 11:24:01

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

Related Questions

  Difference between Factory and Abstract Factory Design Pattern ?
  Please specify in what sequence the objects of following classes will be created ?

Session , SessionFactory, Query , Configuration
  Difference between Factory and Builder Design Pattern ?
  Difference between Factory and Strategy Design Pattern ?
  What is ThreadFactory ?
  How many SessionFactory and Session objects are created ?
  Which class provides the enumerated value for Bean Scope ?
 What are the advantages and disadvantages of Factory Design Pattern ?
 What is a factory design pattern ?

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: