• Email
  • Like
  • Save
  • Private Content
  • Embed
 

Exception Safety and Garbage Collection and Some Other Stuff

by on May 06, 2011

  • 14,256 views

It’s very likely that you’ve been writing totally incorrect code without realizing it. While not a full solution, this is an extremely informal attempt at an overview of the problem.

It’s very likely that you’ve been writing totally incorrect code without realizing it. While not a full solution, this is an extremely informal attempt at an overview of the problem.

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel

9 Embeds 139

http://www.redditmedia.com 103
http://bsv-confluence01 9
http://twitter.com 7
http://paper.li 7
https://twitter.com 4
http://www.onlydoo.com 4
http://tingletech.tumblr.com 3
http://us-w1.rockmelt.com 1
https://si0.twimg.com 1

More...

Statistics

Likes
4
Downloads
69
Comments
4
Embed Views
139
Views on SlideShare
14,117
Total Views
14,256

14 of 4 previous next Post a comment

  • WilliamKemper William Kemper For those of us 'stuck' with Java, have a look at 'lombok'. Specifically: http://projectlombok.org/features/Cleanup.html 2 years ago
    Are you sure you want to
  • MSH909 MSH909 @Are Tunes

    A finally block -always- gets executed. The purpose is to clean up resources regardless of whether a catch block exists or not (without a catch block, the exception bubbles to the callee, but just prior to the exception being thrown, any statements inside the finally block will be invoked).

    The finalize method (on the Object super class) is executed on the terms of the JVM. Is that what you're referring to?
    http://download.oracle.com/javase/6/docs/api/java/lang/Object.html#finalize%28%29
    2 years ago
    Are you sure you want to
  • AreTunes Are Tunes There's no guarantee by the JVM that finally will ever run, just say'n 2 years ago
    Are you sure you want to
  • JulianMorrison JulianMorrison See also Go with its 'defer' and mostly deterministic error handling. 2 years ago
    Are you sure you want to
Post Comment
Edit your comment

Exception Safety and Garbage Collection and Some Other Stuff Exception Safety and Garbage Collection and Some Other Stuff Presentation Transcript