How to find objects in memory
<p>Is there any way to find that a specific object is still in the memory or not? For example I have a <code>JFrame</code> called <code>GuiSearch</code>. When I called some method it will be disposed. I want to find is it still in the memory or disposed. I am new to java. Please help me.</p>

<p>Edit: What I want to do is find that the specific object is still in the memory or not and if it is in the memory, I want to call a method and if it is not, call another method.</p>
