Android
AND-401 · Question #106
Which of the following is NOT true about the SharedPreferences interface?
The correct answer is D. It can save any data type in key-value pairs. See the full explanation below for the reasoning.
Question
Which of the following is NOT true about the SharedPreferences interface?
Options
- AThe data it saves is persistent even if application is killed.
- BIt only saves primitive data in key-value pairs.
- CModifications to preferences saved should go through class SharedPreferences.Editor
- DIt can save any data type in key-value pairs.
How the community answered
(45 responses)- A13% (6)
- B7% (3)
- C4% (2)
- D76% (34)
Community Discussion
No community discussion yet for this question.