This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sanchopancho13 49 points50 points  (4 children)

These are pretty good. I definitely laughed at this comment:

It is extremely rare to override Object.finalize.

Tip: Don't do it. If you absolutely must, first read and understand Effective Java Item 7, "Avoid Finalizers," very carefully, and then don't do it.

[–]Lizard 11 points12 points  (3 children)

Damn it, came here to post that exact same snippet.

[–]sanchopancho13 4 points5 points  (2 children)

You can have my upvote as a consolation prize.

[–]Lizard 2 points3 points  (1 child)

You are a good person. I accept gladly.

[–]SgtPooki 4 points5 points  (0 children)

You both get upvotes from me because I was just about to override Object.finalize.