In the Android API http://developer.android.com/guide/topics/data/data-storage.html#pref
It says:
Shared Preference allows you to save and retrieve persistent key-value
pairs of primitive data types. You can use SharedPreferences to save
any primitive data: booleans, floats, ints, longs, and strings.
Is String a primitive data type or an Object?
As far as
Javaprogramming language is considered,—— from The Java™ Tutorials – Primitive Data Types
So, as such in
Javabooks, it’s not a keyword and not a primitive either.SharedPreferencesmay still call it one of the primitives, but that’s not from the book ofJavaas such, it could be because it’s one of the set of basic types like int, float, char etc we come across.