What replaces SharedPreferences in modern Android?
- A DataStore
- B Room
- C Bundle
- D ContentProvider
Answer
DataStore
SharedPreferences had a synchronous API that could block the main thread and no error signalling. DataStore is asynchronous and transactional.





