Does replacing a fragment destroy all hidden fragments
<p>If I have an Activity and I add fragment1, hide fragment1, add fragment2, hide fragment2, then use </p>

<pre><code>fragmentManager.beginTransaction()
                    .replace(R.id.content, fragment3)
                    .commit();
</code></pre>

<p>to now replace in fragment3, what happens to fragment1 and fragment2? Do they get destroyed or something or are they still there? (this is all within the same container, <code>R.id.content</code>)</p>