Android Persistent Key-Value Storage Class | Generated by AI

Home 2026.01

Question: Which class is used for simple key-value persistent storage in Android?

A) SQLiteDatabase
B) FileOutputStream
C) SharedPreferences
D) ContentValues

Answer:

The correct answer is C) SharedPreferences.

Explanation:

SharedPreferences is the standard and recommended choice for simple persistent key-value storage in Android applications.


Back

x-ai/grok-4.1-fast

Donate