Shared preferences store data as
-
hash map
-
key–value pair
-
built in database
-
None of these
B
Correct answer
Explanation
SharedPreferences stores data as key-value pairs internally. Under the hood, these are saved as XML files in the app's private directory, but the abstraction model is a simple key-value map, not a hash map (the internal implementation detail) or a built-in database.