🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Spring Core and DI: all 10 questions

Quiz: Spring Core and DI · Question 5 of 10

Which annotation is NOT a specialisation of @Component?

Which annotation is NOT a specialisation of @Component?

  1. A.@Service
  2. B.@Repository
  3. C.@Controller
  4. D.@Bean
Answer & explanation

Correct answer: @Bean

@Bean marks a factory method inside a @Configuration class, not a class.

Can you get the rest right without peeking?

Take the timed Quiz: Spring Core and DI quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →