Java   View all facts   Glossary   Help
syntactic unit > statement > control flow statement > exception statement > throws statement
Next exception statementtry-catch-finally statement    Upexception statement

throws statement
subjectfact 
throws statementhas example
throw new MyException("my exceptional condition occurred");
added by: JK, 2001-10-19 11:38:08.0
has purpose to generate an exceptionadded by: JK, 2001-10-19 11:38:08.0
is part of method bodyadded by: JK, 2001-10-19 11:38:08.0
is a subtopic of Exception Handling2001-10-19 11:38:08.0
is a kind of exception statementadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:38:08.0
see also throws clauseadded by: JK, 2001-10-19 11:38:08.0
statementis terminated by a semicolon    2001-10-19 11:37:57.0
should be not more than one line long if possible2001-10-19 11:37:57.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0