Meaningless Drivel is fun!*
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "exceptions " Watch "exceptions " New topic
Author

exceptions

praveena reddyk
Greenhorn

Joined: Sep 25, 2008
Posts: 11
can anybody explain me about throw and throws keywords.
i know that throw is used for throwing the exception manually
and throws for indicating the user for indicating that so and so
method may are maynot throw the exception. otherthan that is there anything more.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38007
    
  22
More of a beginner's question, as was your other posting. Please always use titles for your posts which tell what they are about; "exceptions" is a bit too general.

If you ever get your hands on a copy of "Object-Oriented Software Constructrion" by Bertrand Meyer, it has a nice chapter about errors and Exceptions in, although his handling examples are not quite as good as the rest of the chapter.
I am forever sending people to the Java Tutorials; there is always something useful there.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exceptions
 
Similar Threads
Jxam
Exception handling
Difference between Throws and Throw
doubt in throw and throws!!!
SCJP Exercise 5-3 for help.