| | |
More Excptions
![]() |
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 |
6 @param actuate android api applet application arc array arrays automation balls binary bluetooth bold business byte c++ chat class client code codesnippet collections compare component coordinates database defaultmethod detection doctype dragging ebook eclipse educational error file fractal froglogic game givemetehcodez graphics gui guitesting helpwithhomework hql html ide ideas image ingres input integer internet intersect invokingapacheantprogrammatically j2me java javaexcel javaprojects jni jpanel jtextarea julia linux list map method methods mobile mysql netbeans newbie nextline parameter php pong problem program programming project recursion recursive scanner sell server set sms sort sql string sun swing swt terminal threads tree web websites windows






