Java   View all facts   Glossary   Help
syntactic unit > clause > throws clause
Next clauseimplements clause    Upclause

throws clause comparison table
Subject have purpose have syntax see also is a kind of is a subtopic of be part of have example
clause   syntactic unit   
throws clauseto specify the type(s) of exception(s) that might be generated when a method is run
throws exceptionClassName
throws statementclauseException Handlingmethod definition
// A method definition with a throws 
public void open_file() throws IOException {
// Statements here that might generate an uncaught java.op.IOException
}

Next clauseimplements clause    Upclause