Query VM for number of object instances, possible?

I have a super duper java guru question:

Given a class object (or equivalently a class name and it's respective class loader), is there a way to determine if any instances of this class exist in the VM? I don't care how many, I just want to know if there are any at all. Perhaps another way to pose this question, do any

events get thrown when no more instances of a particular class exist?

Joe

[435 byte] By [jtolip] at [2007-9-26 2:57:05]
# 1
No, there's no way for you to tell that unless you do some programming.
DrClap at 2007-6-29 10:48:41 > top of Java-index,Core,Core APIs...