S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation is used to automatically wire dependencies?

  • (A) @Inject
  • (B) @Autowired
  • (C) @Resource
  • (D) @Dependency
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@Autowired allows Spring to resolve and inject collaborating beans into a bean.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.