Android Dependency Injection
Dependency Injection with Hilt and Dagger: @Inject, @Module, @Provides, Scopes, Qualifiers, Testing
15 면접 질문·
Mid-Level
1What is Dependency Injection (DI)?
1
What is Dependency Injection (DI)?
답변
Dependency Injection is a pattern that provides a class's dependencies from the outside rather than creating them inside. This improves testability, modularity and reduces coupling between components.
2What is Hilt?
2
What is Hilt?
답변
Hilt is a DI library built on top of Dagger 2, specifically designed for Android. It simplifies DI configuration with standard annotations and automatically manages Android components (Activities, Fragments, ViewModels).
3What is the @HiltAndroidApp annotation used for?
3
What is the @HiltAndroidApp annotation used for?
답변
@HiltAndroidApp is applied on the Application class and triggers Hilt code generation. It creates the application root component and enables dependency injection throughout the app. Required to use Hilt.
4
What is the @AndroidEntryPoint annotation used for?
5
What is the @Inject annotation used for?
+12 면접 질문
기타 Android 면접 주제
Android Fundamentals
Junior
24개 질문Android UI and Resources
Junior
30개 질문Android Lifecycle
Junior
30개 질문Android Navigation
Junior
26개 질문Android Data Management
Junior
29개 질문Android Networking
Junior
29개 질문Android Testing
Junior
28개 질문Android Gradle
Junior
26개 질문Kotlin Language Essentials for Android
Junior
24개 질문Room Database
Mid-Level
25개 질문Background Work
Mid-Level
18개 질문Jetpack Compose
Mid-Level
28개 질문Permissions and Device Features
Mid-Level
21개 질문Firebase for Android
Mid-Level
23개 질문Android MVVM Architecture
Mid-Level
18개 질문Advanced Android Networking
Mid-Level
13개 질문Kotlin Collections and Operators
Mid-Level
20개 질문Kotlin Coroutines and Flow
Mid-Level
20개 질문Android MVI Architecture
Mid-Level
17개 질문Android Clean Architecture
Senior
21개 질문Android Compose Advanced
Senior
17개 질문Android Performance and Monitoring
Senior
13개 질문Android Security and Privacy
Senior
18개 질문Android CI/CD and Release
Senior
15개 질문Android UX and Form Factors
Senior
18개 질문Android Testing Advanced
Senior
18개 질문