Originally posted by Dhineshkumar raj:
In java is there any way to find a particular object is not used by any live thread.
Regards
Dhinesh
You can use different type of references in java.lang.ref package and use a ReferenceQueue, in which the references will be queued when they are no longer reachable.
This article has a good explanation for these classes.