It will help you a lot to understand the code if you format it neatly with proper indentation...
You can now see that the throws clause is part of the method declaration, whereas the throw statement is part of the method body.
The throws clause tells you what exceptions the method may throw. The person calling the method must either handle these exceptions (with a try..catch) or declare them in its own throws clause (which will pass the exception up the call-stack until something handles it, or the application crashes).
The throw statement actually throws an exception.
[ May 09, 2004: Message edited by: David Peterson ]