Room Database
Local database with Room: Entity, DAO, Database, Relations, Migrations, TypeConverters, LiveData and Flow
1What is Room in Android?
What is Room in Android?
Jawaban
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?
What are the 3 main components of Room?
Jawaban
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?
What is the @Entity annotation used for in Room?
Jawaban
@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.
How to define a primary key in a Room Entity?
What is the @ColumnInfo annotation used for?
+22 pertanyaan wawancara
Topik wawancara Android lainnya
Android Fundamentals
Android UI and Resources
Android Lifecycle
Android Navigation
Android Data Management
Android Networking
Android Testing
Android Gradle
Kotlin Language Essentials for Android
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 Dependency Injection
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
Kuasai Android untuk wawancara berikutnya
Akses semua pertanyaan, flashcards, tes teknis, latihan code review dan simulator wawancara.
Mulai gratis