Loading ...
Sorry, an error occurred while loading the content.

Insightful article on Java/C# finalizers vs. C++ destructors

Expand Messages
  • Omer Musaev
    C++ destructors are methods that are executed when current continuation leaves the scope where the object was defined. But there are no destructors in Java.
    Message 1 of 1 , May 21, 2003
    • 0 Attachment
      Insightful article on Java/C# finalizers vs. C++ destructors

              C++ destructors are methods that are executed when current      continuation leaves the scope where the object was defined.

      But there are no destructors in Java.

      Hans J. Boehm, of the "Hans J. Boehm C++ Garbage Collector" describes why there are no destructors in Java, what are "finalizers" that we do have in Java but not in C++ and what is the difference.

      Interesting.

      http://www.hpl.hp.com/personal/Hans_Boehm/popl03/web/html/slide_1.html


      --
      Omer Mussaev
      Software Engineer, EMS team, APM R&D
      Mercury Interactive



      ________________________________________________________________________
      This email has been scanned for all viruses.

      Mercury Interactive Corporation
      Optimizing Business Processes to Maximize Business Results

      http://www.merc-int.com
      ________________________________________________________________________
    Your message has been successfully submitted and would be delivered to recipients shortly.