prefs.edit().clear().apply() will:
- Remove only the username
- Encrypt the file
- Remove all keys in that preferences file
- Delete the app
Answer
C) Remove all keys in that preferences file
clear() removes all entries.
Computer Science MCQ · More Lab: SharedPreferences MCQs · Practise