Android

Android Clean Architecture

Clean Architecture in Android: layers, use cases, repository pattern, and SOLID principles

21 면접 질문·
Senior
1

What are the 3 main layers of Clean Architecture?

답변

Clean Architecture consists of 3 layers: Presentation (UI, ViewModels), Domain (Use Cases, business entities), and Data (repositories, data sources). Each layer has its responsibility and depends only on inner layers.

2

What is a Use Case in Clean Architecture?

답변

A Use Case (or Interactor) is a class that encapsulates a single business action of the application. It contains business logic specific to a use case and orchestrates Repository calls. Example: LoginUseCase, GetUserProfileUseCase.

3

What is the Repository pattern?

답변

Repository is an abstraction providing an interface for data access, hiding the actual source (API, local DB, cache). It coordinates different data sources and returns Domain entities. It centralizes data access logic.

4

What are the types of Data Sources in Clean Architecture?

5

What is the difference between Domain Models and Data Models?

+18 면접 질문

다음 면접을 위해 Android을 마스터하세요

모든 질문, flashcards, 기술 테스트, 코드 리뷰 연습, 면접 시뮬레이터에 접근하세요.

무료로 시작하기