Exam AND-401 All QuestionsBrowse all questions from this exam
Question 47

Which of the following is NOT true about the SharedPreferences interface?

    Correct Answer: D

    SharedPreferences only saves primitive data types such as int, long, float, boolean, String, and Set<String> in key-value pairs. It cannot save any arbitrary data type. This makes option D, which states it can save any data type in key-value pairs, incorrect.

Discussion
MmadiOption: D

D. It can save any data type in key-value pairs.