Running a Room query on the main (UI) thread by default:
- Is recommended
- Throws an exception, because database work must be off the main thread
- Is faster
- Deletes the table
Answer
B) Throws an exception, because database work must be off the main thread
Room blocks main-thread access to keep the UI responsive.
Computer Science MCQ · More UI Events, Views, Preferences and Data Storage MCQs · Practise