• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Exceptions Exercises

 
Michael Hubele
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking for a site that has like some exercises where they give you code or something like that and you have to use exceptions to make it work or something like that.

Like I sort of understand how to use exceptions but I want some pratice on making them but I would not even know how to begin and test to see if they work.
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might try the Error Handling with Exceptions chapter from Thinking in Java (3rd ed.). At the end of the chapter are 21 exercises.
 
Fox Trot
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
exceptions are neat, try/catch is easy, i assume you want to create your

own exception class and have a main program throw that exception right?

umm...if you have a school text, the sections after the chapter usually

have tons of exercises......

Monk....

-thanks for disabling my name-
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic