Assume the prefs object is a SharedPreferences object. What does the following statement do? deleteOldMessages = prefs.getBoolean("delete_old_messages", true);

Assume the prefs object is a SharedPreferences object. What does the following statement do?
deleteOldMessages = prefs.getBoolean("delete_old_messages", true);









a. It returns the Boolean value that's saved for a preference with a key of "delete_old_messages".
b. It returns the Boolean value that's saved for a preference with a title of "delete_old_messages".
c. It returns the default value for the preference with a key of "delete_old_messages".
d. It returns the default value for the preference with a title of "delete_old_messages".









Answer: A


Android

Learn More Multiple Choice Question :