What is factory method in spring?



What is factory method in spring?..

Answer / Archana Verma

Factory Method in Spring is a design pattern where an interface declares a method that returns an object, but it's the subclasses that decide which class to instantiate. In Spring, BeanFactory provides a FactoryBean interface for implementing factory methods.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What is the use of @service in spring?

1 Answers  


Describe aop.

1 Answers  


What is @qualifier annotation in spring?

1 Answers  


Which dependency injection is used for a mandatory dependency?

1 Answers  


What classes are used to control the database connection?

1 Answers  


Is spring mvc a design pattern?

1 Answers  


What are the different types of injection in spring?

1 Answers  


What is java spring boot used for? : Spring Boot

1 Answers  


What is spring and hibernate?

1 Answers  


What is @transactional in jpa?

1 Answers  


What do you mean by spring java based configuration?

1 Answers  


What is root context in spring?

1 Answers  


Categories