Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

exceptions  RSS feed

 
praveena reddyk
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 53779
128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!