S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which annotation allows you to create a new thread-safe service layer class?

  • (A) @Service
  • (B) @Repository
  • (C) @ThreadSafe
  • (D) @Component
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category Springboot
  • Hashtags:

Explanation by: Shyam Dubey
@Service marks a class as a service provider, typically used in the business logic layer.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.