Skip to content

humanoid readable

Computer Programming for Humanoids

  • Home
  • About
  • My Projects

Tag: cleanup

How to replace Object.finalize()

There are many articles and blog posts about this topic but rarely are they complete. I’ll cover finalizers, Finalizer Guardian idiom, Dispose Pattern, PhantomReference and Cleanable.

Continue reading “How to replace Object.finalize()”
Author ClaudePosted on 2014-07-302021-11-17Categories Java, My Projects, ProgrammingTags cleanup, Dispose Pattern, Finalizer, Finalizer Guardian idiom, Garbage Collection3 Comments on How to replace Object.finalize()

Java Cleanup

## WARNING:
There already is sun.misc.Cleaner. And Java 9 should even have java.util.Cleaner or something like that. I simply didn’t know. So it’s better to wait for Java 9 or use sun.misc.Cleaner.

If you are still interested:

Project home:
http://claude-martin.ch/java-cleanup/

I have a blog post about Finalizers and PhantomReferences:
Object.finalize()

Author ClaudePosted on 2014-07-29Categories Java, My ProjectsTags cleanup, finalizeLeave a comment on Java Cleanup

Quick Search

Categories

  • About
  • Java
  • Java Interview Questions
  • Java Misnomers
  • Misconceptions
  • My Projects
  • Programming

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Home
  • About
  • My Projects
humanoid readable Proudly powered by WordPress