aspose file tools*
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


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java Exceptions Exercises" Watch "Java Exceptions Exercises" New topic
Author

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
Sheriff

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
sscce.org
Fox Trot
Greenhorn

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......

Monk....

-thanks for disabling my name-
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java Exceptions Exercises