Android Dependency Injection
Dependency Injection with Hilt and Dagger: @Inject, @Module, @Provides, Scopes, Qualifiers, Testing
1What is Dependency Injection (DI)?
What is Dependency Injection (DI)?
Cevap
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?
What is Hilt?
Cevap
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?
What is the @HiltAndroidApp annotation used for?
Cevap
@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.
What is the @AndroidEntryPoint annotation used for?
What is the @Inject annotation used for?
+12 mülakat soruları
Diğer Android mülakat konuları
Android Fundamentals
Android UI and Resources
Android Lifecycle
Android Navigation
Android Data Management
Android Networking
Android Testing
Android Gradle
Kotlin Language Essentials for Android
Room Database
Background Work
Jetpack Compose
Permissions and Device Features
Firebase for Android
Android MVVM Architecture
Advanced Android Networking
Kotlin Collections and Operators
Kotlin Coroutines and Flow
Android MVI Architecture
Android Clean Architecture
Android Compose Advanced
Android Performance and Monitoring
Android Security and Privacy
Android CI/CD and Release
Android UX and Form Factors
Android Testing Advanced
Bir sonraki mülakatın için Android'de uzmanlaş
Tüm sorulara, flashcards'a, teknik testlere, code review alıştırmalarına ve mülakat simülatörlerine eriş.
Ücretsiz başla