Dagger Fundamentals & Manual DI

ARCHITECTURE › Dependency Injection

Dagger's compile-time graph, core annotations, and hand-rolled DI beneath Hilt.

Interviewers probe this to confirm you understand what Hilt actually generates rather than treating annotations as magic. Expect to explain the core Dagger building blocks (@Component, @Module, @Provides, @Inject, qualifiers, subcomponents), why compile-time graph validation beats reflection, how to wire dependencies manually with constructor injection and an AppContainer, and when a framework is the wrong choice. Strong answers connect the concepts to real tradeoffs like build-time errors versus runtime failures.

What this covers

Study this topic

Further reading