KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've seen some code as below in some example BlackBerry Java classes: try { // stuff that will throw an exception } catch(final Exception e) { // deal with it } I presume the final is for performance. As per the title, since there's rarely (ever?) any reason to modify an Exception that's already been thrown, should they always be final ? If so, isn't this something that could be done by the compiler? Or is it done by the compiler and adding the final manually has no impact at all?
Tags (comma-separated)
Save Edits
Cancel