What is MVVM architecture in Android and why is it used?

Updated Apr 28, 2026

Short answer

MVVM separates UI, business logic, and data handling using View, ViewModel, and Model.

Deep explanation

MVVM improves maintainability by separating concerns. The View handles UI, ViewModel manages UI-related data and business logic, and Model handles data sources. It reduces tight coupling and improves testability.

Real-world example

Displaying user profile data with automatic UI updates.

Common mistakes

  • Putting business logic inside Activity instead of ViewModel.

Follow-up questions

  • Why MVVM over MVC?
  • What is role of ViewModel?

More Android interview questions

View all →