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
Don't get me started about those stupid
subject: Regarding throw and throws
Question on Exception
regarding daemon thread in java
throw exception question
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-2014