← Quiz: Spring Core and DI: all 10 questions
Quiz: Spring Core and DI · Question 6 of 10
What is a "bean" in Spring?
What is a "bean" in Spring?
- A.Any Java class in the project
- B.A JSON object returned by a controller
- C.An object created and managed by the Spring IoC container
- D.A Maven dependency
Answer & explanation
Correct answer: An object created and managed by the Spring IoC container
Beans are the objects the container creates, wires together and manages.
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 →