Java syntax: Difference between revisions

Content deleted Content added
m Methods: language cleanup
Line 1,096:
</source>
 
Methods throwing exceptions useThe <code>throws</code> keyword to indicateindicates that a method throws an exception. All checked exceptions aremust mandatorybe tolisted bein a comma-separated declaredlist.
<source lang=Java5>
void openStream() throws IOException, myException { // Indicates that IOException may be thrown
}
</source>