What's the difference between the DeadObjectException
and a NullPointerException
?
I think I may understand but I just wanted to make sure.
My Understanding
A DeadObjectException
happens when you are trying to make a reference to something (and the memory still exists) but there aren't any pointers holding its address, so there's no way to reach that memory. It's different from a NullPointerException
in the fact that the memory still is valid, there's just no way to reach it.
Do I have the right idea? Based on other questions on the site:
I think my assertion is correct, I just wanted to make sure.