Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Regarding throw and throws
santhosh kumar vk
Joined: Aug 25, 2009
Sep 13, 2010 21:29:53
This is santhosh can you tell me which one will throw checked exception and unchecked exception whether throw or throws and another one is what is checked exception please tell me no one give exact meaning.
Joined: Nov 24, 2005
Sep 13, 2010 21:40:22
Please use some punctuation because your post is unreadable.
All roads lead to JavaRanch
Joined: Oct 27, 2005
Sep 14, 2010 01:44:46
throws is used in the method declaration to indicate which exceptions it can potentially throw.
throw is used inside implementations to actually throw an exception.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
Joined: Oct 13, 2005
Sep 14, 2010 02:03:00
There is a lot in the
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Regarding throw and throws
throw exception question
Question on Exception
regarding daemon thread in java
Questions about method overloading and throwing exceptions...
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013