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){ }
throw and throws are very important parts of Java's Exception Handling functionality. To get the best bang for your buck, I'd suggest checking out this Sun Tutorial: Lesson: Handling Errors with Exceptions
World domination requires a hollowed out volcano with good submarine access. Tiny ads are optional.
a bit of art, as a gift, the permaculture playing cards