I just want to know what happens when this code is written:
public static void main(String[] args) throws IOException
Parsu7
-1
Light Poster
Recommended Answers
Jump to PostYou will not be obligated to write something like:
try { } catch(IOException io) { }
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 …
All 4 Replies
javaAddict
900
Nearly a Senior Poster
Team Colleague
Featured Poster
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
Parsu7
-1
Light Poster
Parsu7
-1
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.