← 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?
- A.@Service
- B.@Repository
- C.@Controller
- 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 →