title: Where savedInstanceState ViewModel stores data in android?
body: <p>As far as I know after configuration changes we can restore state retrieving data from ViewModel and we can retrieve data from savedInstanceState even when system kills the application. </p>
  
  <p>I would like to know where the data is stored when we are using ViewModel and savedInstanceState.</p>
  
  <p>and came across with the code recently which I know is not the best way of storing data  but I would like to know where data is stored in this case I mean where HashMap is keeping data?</p>
  
  <pre><code>private static final int CACHE_LIMIT = 10;
  private final Map&lt;String, Data&gt; mStorage = new HashMap&lt;&gt;(CACHE_LIMIT);
  private final List&lt;String&gt; mKeys = new ArrayList&lt;&gt;(CACHE_LIMIT);```
  
  
  </code></pre>