This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Exceptions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Exceptions" Watch "Exceptions" New topic


abhisaar jain

Joined: Sep 19, 2009
Posts: 1
What are the limitations of throw() and throws()?
im not getting clear with it,,,
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 36482
Welcome to JavaRanch

Neither throw() nor throws() can be compiled.
How much do you know about Exceptions? Start with the Java™ Tutorials.
I agree. Here's the link:
subject: Exceptions
Similar Threads
throw throws
synchronized, wait, notify
to exit from a function
throws and throw
Throws and throw