In how many ways you can inject dependency?

11. In how many ways you can inject dependency?

  1. 4
  2. 2
  3. 5
  4. 7

Answer: B) 2

Explanation:

The Spring framework provides two methods for injecting dependencies:

  • By constructor
  • By Setter method

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.