Does replacing a fragment destroy all hidden fragments

Viewed 2776

If I have an Activity and I add fragment1, hide fragment1, add fragment2, hide fragment2, then use

fragmentManager.beginTransaction()
                    .replace(R.id.content, fragment3)
                    .commit();

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, R.id.content)

2 Answers
Related