I was also looking for some "answers" to this Sharpen your pencil so lets continue this
thread that was a good start:
Kathy need your help -> Sharpen Your Pencil pg:547 I mostly agree in the answers suggested of Agasthya Iyer except for number 4 where B.Sathish has argumented very good for why it should be option A. I first answered C and D assuming that the checked exception is declared for the business method but after have read the arguments from B.Sathish do I fully agree in that it should be answer A.
But for the first one am I not sure. If the caught exception is not one that is declared or one that is an exception from a lower level, then is answer A the one that is correct. But if it is an exception that is declared for that method, would it then not be more correct to answer D and let the client know what went wrong? And they do not say that the bean is probably corrupt in the first scenario. I assumed that the exception is declared for the method and answered D.
But comments to this would be appreciated! [ June 23, 2007: Message edited by: Jonny Andersson ]
[ June 23, 2007: Message edited by: Jonny Andersson ]
[ June 23, 2007: Message edited by: Jonny Andersson ]