Home »
MCQs »
Spring MCQs
In how many ways you can inject dependency?
11. In how many ways you can inject dependency?
- 4
- 2
- 5
- 7
Answer: B) 2
Explanation:
The Spring framework provides two methods for injecting dependencies:
- By constructor
- By Setter method