Bird
0
0

What does the @EnableAsync annotation do in a Spring Boot application?

easy📝 Conceptual Q1 of 15
Spring Boot - Async Processing
What does the @EnableAsync annotation do in a Spring Boot application?
AIt enables asynchronous method execution in the application.
BIt schedules tasks to run at fixed intervals.
CIt configures database connection pooling.
DIt enables caching support in the application.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of @EnableAsync

    The annotation activates Spring's asynchronous method execution capability.
  2. Step 2: Compare with other options

    Scheduling, caching, and database pooling are unrelated to @EnableAsync.
  3. Final Answer:

    It enables asynchronous method execution in the application. -> Option A
  4. Quick Check:

    @EnableAsync = Enables async execution [OK]
Quick Trick: Use @EnableAsync to run methods in background threads [OK]
Common Mistakes:
  • Confusing with scheduling annotations
  • Thinking it enables caching
  • Assuming it manages database connections

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Spring Boot Quizzes