|
-
July 6th, 2010, 05:15 AM
#3
Re: newbie: exception handling (and Eclipse)
not sure to have understood; BTW, these 5 methods do basically the same operation: reader.next(); however, before to call the next() method, I cal the reader.hasNext() that sohould guarantee that reader.next() will never throws any exception; right, this?
Yes, in my opinion (as the methods do basically the same operation) the best way would be put try and catch outside them. I was thinking directly in th main() class. Is this awful?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|