Swats,
Please take a look at the
JavaRanch naming policy. You can update your publicly displayed name to conform to our policy by clicking
here.
Thank you.
With regards to your question, exception objects will be eligible for garbage collection as soon as they are no longer used, just like any other object. So, for example, if you catch an exception and handle it, the exception will be eligible for garbage collection following the catch block (assuming you didn't assign any references to it to other variables).