S

Satya • 3.38K Points
Extraordinary

Q. What is the purpose of @Autowired?

  • (A) To configure database
  • (B) To inject dependencies automatically
  • (C) To create a new class
  • (D) To handle exceptions
  • Correct Answer - Option(B)
  • Views: 13
  • Filed under category Springboot
  • Hashtags:

Explanation by: Satya

@Autowired is used for dependency injection in Spring Boot.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.