| | |
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
addressbook android api apple applet application arguments array arrays automation binary bluetooth button calculator chat class classes client code columns component converter database draw eclipse error errors event exception file fractal ftp game givemetehcodez graphics gridlayout gui helpwithhomework html ide image inetaddress input integer j2me japplet java javaprojects jme jmf jni jpanel julia link linux list loop map method methods midlethttpconnection mobile netbeans newbie number objects openjavafx oracle php print problem program programming project projects recursion rim scanner screen server set signing size smart sms socket sort sql storm string support swing test threads time tree unlimited variablebinding webservices windows






