JAVA DESIGN PATTERN Questions and Answers

Explain what is creational design patterns and Factory pattern?

Creational design pattern: This pattern is used to define and describe how objects are created at class instantiation time.

Factory pattern: The factory pattern is used to create an object without exposing the creation logic to the client and refer to a newly created object using a common interface.