Question: What allows you to properly restore a user's state when an activity is restarted?

  1. the onSaveInstance()method
  2. all of these answers
  3. persistent storage
  4. ViewModel objects

Answer: The correct answer of the above question is Option B:all of these answers