The try block in Listing 9.13 contains invocations to three methods:
SetBackground, getColor, and getText. The one catch block catches an
UnknownColorException thrown by the method getColor. Should we
have written other catch blocks for exceptions thrown by the other two
methods called in the try block?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here