The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Three Rules for Effective Exception Handling
Subject:  Not, reasonable application SHOULD catch it
Date:  2003-12-05 13:29:09
From:  jimothy
Response to: Not, reasonable application SHOULD catch it


My point was, any action to recover from or report an OutOfMemoryError (such as notifying the sysadmin) could also result in an OoME.

I suppose there's no harm trying. But do keep in mind that the time between setting a reference to null and that reference being garbage collected is indeterminant.

 Feed java.net RSS Feeds