finals Flashcards

omg (27 cards)

1
Q

a powerful tool that simplifies backend development in Java, widely used to build web and desktop application

A

spring framework

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

core features of spring framework

A

-Inversion of Control (IoC)
-Dependency Injection(DI)

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

Spring manages the creation and lifecycle of objects (called beans), so you don’t have to manually create another object

A

Inversion of Control

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

Spring automatically provides the necessary components your application needs, like a smart assistant

A

Dependency Injection

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

example of (DI) ____ annotation, Spring can inject a service or repository into your class without using the new keyword

A

@Autowired

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

Components of Spring: Key Modules and Features in Spring

A

-Spring Core
-Spring JDBC
-Spring MVC
-Spring AOP

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

responsible for managing beans and handling dependency injection, heart of the spring

A

Spring Core

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

used to simplify database operation, removing repetitive code

A

Spring JDBC (Java Database Code)

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

follows the Model-View-Controller architecture to help build structured web application

A

Spring MVC

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

allows you to add cross-cutting concerns like jogging, security or transaction management without changing the core logic

A

Spring AOP(Aspect-Oriented Programming)

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

Spring annotations:

A

@Component
@Bean
@Autowired

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

Spring annotations: Which registers a class as a Spring-managed bean

A

@Component

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

Spring annotations: Which defines beans in Java configuration files

A

@Beans

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

Spring annotations: Used to mark a class for Spring to manage, including its backend logic

A

@Component

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

Spring annotations: Used to for automatic object creation

A

@Autowired

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

you write it once and Spring inserts it wherever needed

17
Q

t/f: Spring AOP is not for building user interfaces, it’s for adding reusable behaviors like logging

18
Q

t/f: Spring MVC is designed to follow the Model-View-Controller pattern, which separates responsibilities for better organization

19
Q

___ are Java objects managed by the Spring container

20
Q

t/f: Spring previously reqired complex XML configurations, it now supports simpler annotation-based setups

21
Q

the JDBC Template belong to

22
Q

Useful when handling common concerns in one place, reducing code duplication

23
Q

t/f: Spring can replace some parts of Java EE(Enterprise Edition), it complements Java EE features.

24
Q

In charge of managing the lifecycle of beans, including their creation, configuration, and destruction

A

Spring container

25
Spring focuses on the "____" of enterprise applications so that teams can focus on application-level business logic
plumbing
26
why use spring
-simplifies Java development -reduces boilerplate -code-built-in security, database access, and more -works well with Java Swing, web, and mobile -
27
instead of writing connection and result handling, Spring does that for you with just a few lines
Spring JDBC