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
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 ]
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: throw and throws
Throws and throw
diff b/w Throw and Throws
throws and throw
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013