File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
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
throws and throw
Throws and throw
diff b/w Throw and Throws
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015