Spring - Core Flashcards

(16 cards)

1
Q

What are the main features and benefits of the Spring Framework?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Inversion of Control (IoC) and how does Spring implement it?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Dependency Injection (DI) and what are the types supported by Spring?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the difference between constructor injection and setter injection in Spring?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are Spring Beans? How are they defined and managed in the Spring container?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the Bean lifecycle in Spring?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the different scopes of Spring Beans?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the difference between @Component, @Repository, @Service, and @Controller?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the role of the ApplicationContext in Spring? How is it different from BeanFactory?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the use of @Qualifier in Spring?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How is @Value used in Spring for injecting values?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the difference between @Bean and @Component?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are Spring Profiles? How are they configured and used?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the purpose of the @PostConstruct and @PreDestroy annotations?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How can you create a thread-safe singleton bean in Spring?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Explain how Spring achieves lazy initialization and how it differs from eager initialization.