Flashcards

Quick study sessions to strengthen memory and retain key concepts.

Flashcard Study

Java: Application Properties

Front

Which scope of beans in Spring is the default in Java?

Singleton. Frame the concept in practical terms so you can explain it during interview discussion. In Spring, the…

View Card →
Flashcard Study

Java: Application Properties

Front

What are the tradeoffs of using different bean scopes in Spring?

Singletons are efficient, but request/session scopes provide isolation. The default singleton scope is efficient for shared state but…

View Card →
Flashcard Study

Java: Application Properties

Front

How do Spring Boot apps utilize environment variables?

By overriding properties in application.properties. Environment variables can override properties defined in Spring Boot's application.properties by using the…

View Card →
Flashcard Study

Java: Application Properties

Front

How do you inject properties using @Value with a default?

Use the syntax ${property:default}. Frame the concept in practical terms so you can explain it during interview discussion.…

View Card →
Flashcard Study

Java: Application Properties

Front

What happens when a @Transactional method is called internally?

The transaction doesn't get applied. Frame the concept in practical terms so you can explain it during interview…

View Card →
Flashcard Study

Java: Application Properties

Front

How can Spring Profiles switch between environments?

By using @Profile annotations and profile-specific properties files. Spring Profiles allow you to define beans and configurations for…

View Card →
Flashcard Study

Java: Application Properties

Front

How does Spring Boot make application configuration flexible?

By using application.properties and environment variables. Spring Boot allows you to define properties in an application.properties or application.yml…

View Card →
Flashcard Study

Java: Application Properties

Front

Why are profiles and externalized properties important in Spring Boot?

They let the same application run in different environments without code changes. Dev, test, and prod rarely share…

View Card →
Flashcard Study

Java: Pattern Abuse

Front

What is YAGNI, and how does it guide design decisions?

YAGNI stands for 'You Aren't Gonna Need It', promoting simplicity. YAGNI is a principle of extreme programming that…

View Card →
Flashcard Study

Java: Pattern Abuse

Front

Why avoid massive inheritance hierarchies in platform design?

They increase complexity and reduce flexibility. Massive inheritance hierarchies can lead to tightly coupled code that is difficult…

View Card →