--:--









Quiz for Spring Core

Course: JAVA | Subject: Java | Topic: Spring Framework (Spring Boot)



Logo

Q1: What is the core concept of Spring Framework?

Logo

Q2: Which interface is implemented by classes that need to release resources on shutdown?

Logo

Q3: Which file is used to define beans in Spring XML configuration?

Logo

Q4: Which annotation is used to mark a class as a Spring component?

Logo

Q5: Which container is the core of Spring’s DI feature?

Logo

Q6: Which annotation is used for constructor-based injection in Spring?

Logo

Q7: Which lifecycle method is called after bean initialization?

Logo

Q8: What is the purpose of @Qualifier annotation?

Logo

Q9: Which Spring interface is used to load bean definitions?

Logo

Q10: What does IoC stand for in Spring context?

Logo

Q11: What is the default scope of a Spring bean?

Logo

Q12: Which annotation is used to manually define a bean?

Logo

Q13: Which configuration is valid in Spring?

Logo

Q14: What is the use of ApplicationContext in Spring?

Logo

Q15: Which scope creates a new bean instance every time?

Logo

Q16: How to define a primary bean among multiple beans?

Logo

Q17: Which annotation is used to scan components automatically?

Logo

Q18: Which annotation is used to specify bean initialization method?

Logo

Q19: Which Spring annotation creates a configuration class?

Logo

Q20: Which annotation can be used to inject values from properties files?

Are you ready to start test? Set your time limit