Room Database
Local database with Room: Entity, DAO, Database, Relations, Migrations, TypeConverters, LiveData and Flow
25 면접 질문·
Mid-Level
1What is Room in Android?
1
What is Room in Android?
답변
Room is a persistence library that provides an abstraction layer over SQLite. It simplifies database access with annotations and generates code to avoid boilerplate. Room is part of Android Jetpack.
2What are the 3 main components of Room?
2
What are the 3 main components of Room?
답변
The 3 main components of Room are: 1) Entity (represents a table), 2) DAO (Data Access Object, contains queries), 3) Database (abstract class containing database configuration and DAOs).
3What is the @Entity annotation used for in Room?
3
What is the @Entity annotation used for in Room?
답변
@Entity marks a class as a database table. Each field in the class becomes a column. By default, the table name is the class name, but it can be customized with tableName.
4
How to define a primary key in a Room Entity?
5
What is the @ColumnInfo annotation used for?
+22 면접 질문
기타 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개 질문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 Dependency Injection
Mid-Level
15개 질문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개 질문