In Android interviews, this question tests whether you understand lifecycle-aware architecture, dependency management, and separation of concerns.
Explain the difference between ViewModel and AndroidViewModel.
Address these points:
AndroidViewModel exposes Application and what trade-offs that creates.ViewModel with dependency injection over AndroidViewModel.The interviewer expects a practical architectural explanation rather than framework trivia. A strong answer should cover lifecycle behavior, testability, coupling to Android framework classes, and when AndroidViewModel is still acceptable.