Exception code examples 01/03/2010
Here are some exception code examples, taken from the book. This zip file contains 5 files, as follows: Try/Catch example: ProductCodes.java. Exception propagation example: Propagation.java and ExceptionScope.java. Creating an exception example: CreatingExceptions.java and OutOfRangeExcepotion.java. These are just examples of the many ways in which exceptions can be used and created by programmers. Every application has a logic of its own which implies, to an experienced designer, how exceptions should be handled. In Exercise 9, as usual, you have to follow the detailed guidlines and create and use exceptions as instructed. -- Shimon CommentsLeave a Reply | AuthorIntro2CS Staff ArchivesMay 2010 Categories |
RSS Feed