throw and throws

Contributor
26Oct2005,13:37   #1
prashantSum's Avatar
what is the difference between throw and throws
Go4Expert Founder
26Oct2005,17:49   #2
shabbir's Avatar
throw
keyword that allows the user to throw an exception or any class that implements the "throwable" interface.

throws
keyword used in method declarations that specify which exceptions are not handled within the method but rather passed to the next higher level of the program.

I hope it clears the doubt in your mind.