Is it possible to have something along the lines of...
class PrivateStuff {
[private] void autodestroy() {
// something something
}
}
... and have the object be kinda destroyed? Like all references to it be set to null.
P.S. I know you can't really "destroy" an object in Java like you would in other languages (like C), and that it's only killable by the GC, but I'm kinda curious if there's a way to force the GC to kill the caller. Just as an experiment, no intent of use it in a real application.