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 comparison table
Subject have example be part of have purpose see also is a kind of
exception statement  to handle exceptions control flow statement
throws statement
throw new MyException("my exceptional condition occurred");
method bodyto generate an exceptionthrows clauseexception statement

Next exception statementtry-catch-finally statement    Upexception statement