×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

Exception Safety and Garbage Collection and Some Other Stuff

by on May 06, 2011

  • 15,116 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.

Statistics

Views

Total Views
15,116
Views on SlideShare
14,977
Embed Views
139

Actions

Likes
3
Downloads
71
Comments
4

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...

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

14 of 4 previous next Post a comment

  • WilliamKemper William Kemper, Software Engineer at Silver Spring Networks 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
    Your message goes here
    Processing…
  • 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
    Your message goes here
    Processing…
  • 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
    Your message goes here
    Processing…
  • JulianMorrison JulianMorrison See also Go with its 'defer' and mostly deterministic error handling. 2 years ago
    Are you sure you want to
    Your message goes here
    Processing…
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