Java / Quarkus Interview questions
What is CDI in Quarkus?
CDI (Contexts and Dependency Injection) is the Jakarta EE standard Quarkus uses as its core dependency-injection model, letting classes declare what they need via annotations like @Inject rather than constructing their own dependencies manually.
Quarkus doesn't use the full, general-purpose CDI implementation found in traditional application servers; instead it uses ArC, a CDI implementation built specifically for Quarkus that resolves as much of the injection graph as possible at build time rather than scanning and wiring beans reflectively at runtime.
The practical effect for a developer is that CDI in Quarkus looks and feels exactly like standard Jakarta CDI — the same annotations, the same scopes — but it starts dramatically faster and is compatible with native-image compilation, because the expensive discovery work has already been done before the application binary even exists.
More Related questions...
