ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  What I Hate About Your Programming Language
Subject:   Java; I want a destructor!
Date:   2003-05-18 18:20:29
From:   anonymous2
Response to: Java; I want a destructor!

The purpose of a destructor is to free resources (not just heap memory). Closing files, sockets, database connections, etc., even in the presence of exceptions, without having to remember to try-finally-release them can be quite powerful. Garbage collection is nice and has its place, but isn't a panacea.

1 to 1 of 1
  1. Java; I want a destructor!
    2003-05-19 03:26:12  anonymous2 [View]

    • Java; I want a destructor!
      2003-07-08 07:03:53  anonymous2 [View]

      • Java; I want a destructor!
        2006-01-23 23:26:01  bastos [View]

1 to 1 of 1