I want to know that how can I make a an Object again go back to its initial stage. In my case I make a fragment and initialize it. I want that when it goes back to another fragment, and then back to first one, all values and variables of the first objects again initializes.
MyFragment frag = new MyFragment();
How can it again go back to this stage without initialization it again with new Keyword.