danger boy wrote:I'm new to java. Can anyone tell me how to identify whether an object is destroyed or not?
Greetings and welcome to JavaRanch.
What do you mean by destroyed? Normally, we leave it to the garbage collector to clean out the memory. There are no command opposite to
new that you can use to get an object removed. A commonly used technique is to set the reference to an object to
null to signal to the GC that "the item I was pointing to is now not important to me". So "dealloc" does not exist.