File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Java Exceptions Exercises Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Exceptions Exercises" Watch "Java Exceptions Exercises" New topic

Java Exceptions Exercises

Michael Hubele
Ranch Hand

Joined: Dec 17, 2005
Posts: 182
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

Joined: Aug 31, 2004
Posts: 11343

You might try the Error Handling with Exceptions chapter from Thinking in Java (3rd ed.). At the end of the chapter are 21 exercises.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Fox Trot

Joined: Apr 17, 2006
Posts: 5
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......


-thanks for disabling my name-
I agree. Here's the link:
subject: Java Exceptions Exercises
It's not a secret anymore!