Results 1 to 3 of 3
Thread: when to use try...catch
- 11-18-2007, 06:16 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 97
- Rep Power
- 0
when to use try...catch
When coding, there are some statements that need try .. catch block otherwise complier gives error and forces the coder to write such statements under try ... catch block.
How can I know, which statements should be written under try...catch block:confused:
Currently, when complier gives error, I then put that statement under try...catch.
Thanx.
- 11-18-2007, 06:40 PM #2
That seems to be the general practice - add the try-catch blocks where indicated by the compiler. The javadocs is/are the place to find out what is required, viz, the Method Detail section for the method(s) in question.
- 11-18-2007, 08:52 PM #3
Senior Member
- Join Date
- Nov 2007
- Posts
- 115
- Rep Power
- 0
Similar Threads
-
try catch!?
By Joe2003 in forum Advanced JavaReplies: 2Last Post: 01-28-2008, 07:51 PM -
Try Catch issue
By curtis_fraser in forum Advanced JavaReplies: 2Last Post: 12-13-2007, 11:04 PM -
Try Catch
By Renegade85 in forum New To JavaReplies: 4Last Post: 12-03-2007, 04:10 PM -
try...catch block
By javaplus in forum New To JavaReplies: 3Last Post: 11-06-2007, 07:53 PM -
Use try and catch
By zoe in forum New To JavaReplies: 2Last Post: 07-25-2007, 07:50 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks