On Mar 24, 2:22 am, "Mahesh N Gidwani" <[email protected]>
wrote:
> Greetings
>
> I am working through the lab 1007 - Exercise 1.3 "Experience various
> Exceptions".
>
> For most of the radio buttons, the java.lang.NullPointerException is
> displayed.
>
> I was expecting different exceptions being caught, for each of the radio
> buttons.
>
> In looking through the code, I have noticed that an array "private double[]
> a;" is declared but I do not see any place where the array is initialized.
>
> Am I missing something? I will appreciate your comments.
I understand the whole lab as a put-you-in-a-real-coding-situation
where you discover that your code does not catch exactly what you
supposed it should. So, the goal for me was to change a bit the code,
the exceptions catched, the order in which they are catched (this part
is crucial), so that for every button you end up more or less with a
different exception being effectively catched. And this is possible if
you study the javadoc for exceptions (pretty large I know but you
cannot do without it). If you search the threads you will find part of
how to do it - in September 2008.
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to