Flashcards

Quick study sessions to strengthen memory and retain key concepts.

Flashcard Study

Java: Application Properties

Front

Why might method visibility affect proxy-based AOP in Spring?

Only public methods are proxied by Spring AOP by default. Spring AOP creates proxies to apply aspects like…

View Card →
Flashcard Study

Java: Application Properties

Front

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

Different bean scopes affect bean lifecycle and resource usage. Spring's bean scopes determine the lifecycle and visibility of…

View Card →
Flashcard Study

Java: Application Properties

Front

How does Spring Boot externalize configuration?

Spring Boot externalizes configuration through properties files, environment variables, and command-line arguments. Externalizing configurations allows a Spring Boot…

View Card →
Flashcard Study

Java: Application Properties

Front

What happens if a method with @Transactional annotation is internally called by another method in the same class?

The transaction may not be applied due to proxy behavior. In Spring, @Transactional works through proxy objects. If…

View Card →
Flashcard Study

Java: Application Properties

Front

How do Spring Profiles enhance environment-specific configurations?

Spring Profiles allow switching configurations based on the active environment. Spring Profiles enable applications to use different configurations…

View Card →
Flashcard Study

Java: Application Properties

Front

How does Spring Boot prioritize configuration sources?

Spring Boot prioritizes command-line arguments, environment variables, and application.properties. Spring Boot follows a specific order to resolve configuration…

View Card →
Flashcard Study

Java: Application Properties

Front

How can you programmatically activate a Spring profile?

Set the spring.profiles.active property. Frame the concept in practical terms so you can explain it during interview discussion.…

View Card →
Flashcard Study

Java: Application Properties

Front

What command runs a Spring Boot JAR?

java -jar filename.jar. Frame the concept in practical terms so you can explain it during interview discussion. Spring…

View Card →
Flashcard Study

Java: Application Properties

Front

How do Spring Boot applications handle missing application.properties?

They run with defaults or environment variables. If there is no application.properties or application.yml, Spring Boot uses default…

View Card →
Flashcard Study

Java: Application Properties

Front

How does proxy behavior affect method visibility in Spring?

Only public methods are proxied. Frame the concept in practical terms so you can explain it during interview…

View Card →