posted 20 years ago
throws used in a method declaration etc, to declare the possible exceptions that can be thrown by the method.
void method() throws Exception {
}
throw used to actually do the throwing
try{
...
...
} catch (NumberFormatException nfEx){
throw new CustomNumberFormatException();
} catch (CustomNumberFormatException){
}