Java View all facts Glossary Help |
syntactic unit > statement > control flow statement > exception statement > throws statement |
throws statement | ||||
subject | fact |
throws statement | has example throw new MyException("my exceptional condition occurred"); | |
has purpose to generate an exception | ||
is part of method body | ||
is a subtopic of Exception Handling | ||
is a kind of exception statement | ||
see also throws clause | ||
statement | is terminated by a semicolon | |
should be not more than one line long if possible | ||
syntactic unit | has syntax rule bold = mandatory |