CSCI 202: Object-Oriented Programming
Programs designed in class
- Throwing an exception: Birthday1.java -
validating the birth month and day.
- Catching an exception: BBook1.java - organizing
the birth dates of your friends.
- Catching multiple exceptions
- Rethrowing an exception:
ArithmEx3.java
- Creating, throwing, and catching a custom exception:
ArithmEx4.java
- Try-catch-finally exception handling:
- Working with the stack trace:
StackTrace.java
- Exception-handling - fix the error and continue:
ArithmEx5.java
- Reading from and writing to files:
Average.java and data file
num.txt