Which of the following correctly completes the statement below to instantiate a SharedPreferences object?
SharedPreferences sharedPref =
a. PreferenceManager.getDefaultSharedPreferences(this);
b. SharedPreferences.PreferenceManager.getDefault(this);
c. SharedPreferences.getDefaultPreferenceManager(this);
d. PreferenceManager.SharedPreferences.getDefault(this);
Answer: a. PreferenceManager.getDefaultSharedPreferences(this);
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.