| | |
More Excptions
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
You will not be obligated to write something like:
in your code. Meaning that if a method throws an IOException you will not have to catch it but if it is thrown there will be no place for the exception to "go" since nothing calls main(), so the program will end with exception.
Java Syntax (Toggle Plain Text)
try { } catch(IOException io) { }
Check out my New Bike at my Public Profile at the "About Me" tab
•
•
Join Date: Feb 2008
Posts: 28
Reputation:
Solved Threads: 1
•
•
•
•
You will not be obligated to write something like:
in your code. Meaning that if a method throws an IOException you will not have to catch it but if it is thrown there will be no place for the exception to "go" since nothing calls main(), so the program will end with exception.Java Syntax (Toggle Plain Text)
try { } catch(IOException io) { }
![]() |
Other Threads in the Java Forum
- Previous Thread: Windows authentication using java
- Next Thread: Replace occurrences in a string
| Thread Tools | Search this Thread |
Tag cloud for Java
actionlistener android api append apple applet application arguments array arrays automation bi binary bluetooth busy_handler(null) chat class classes clear client code component database draw eclipse ee encryption error event exception fractal game givemetehcodez graphics gui html ide image input integer j2me java javaprojects jmf jni jpanel julia jvm key lego linux list loop map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie nextline notdisplaying number oracle oriented output print problem program programming project qt recursion repositories robot scanner screen se server set singleton size sms socket sort sql string swing terminal test textfields threads time transfer tree utility windows wrong xor






