A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
throw and throws
Joined: Feb 01, 2006
Feb 02, 2006 16:53:00
What is the diff. between the throw and throws
Joined: Oct 12, 2005
Feb 02, 2006 18:16:00
using throw you can throw an exception.
when u say a method throws an execption, u are reporting the compiler that the method is capable of throwing an exception, which you are not catching.
[ February 02, 2006: Message edited by: Srinivas Tuta ]
I agree. Here's the link:
subject: throw and throws
diff b/w Throw and Throws
throws and throw
Throws and throw
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014