10-Spring Overview Flashcards

1
Q

Is Spring a full J2EE container?

A

No, it is simply a container for the components (beans) in your application.

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

What are the key principles of Spring framework?

A
  1. Don’t repeat yourself e.g. Spring’s template classes
  2. Separation of Concerns e.g. security layer
  3. Convention over Configuration: attempt to decrease the number of decisions that a developer using the framework –> work even without writing any configuration files
  4. Testability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

2 benefits of Separation of Concerns?

A
  1. Tight Cohesion: Cohesion is the technical name for well focused code doing a single task.
  2. Loose Coupling: Change in one component is isolated from the rest. Changes to not propagate throughout the system.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a POJO?

A

“Plain Java” means you write code with no dependencies on third-party frameworks or infrastructure, and minimal dependencies overall

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