posted 21 years ago
(If I missed the following during a search on this forum, my apologies in advance...)
On K&B CD Exam (Sun Certified...II), here's a question on arrays:
The answer I chose was "Runtime Exception", since a1[1][0] will give you a NullPointerException. The LearnKey answer, however, said that there was compilation error at line 6.
This one seemed easy, but I ran the code anyway to be sure (using Sun JDK 1.4.1), and got the NullPointerException, as expected.
I believe's there's an error in the answer key for this one... can anyone confirm (or point to a forum on this that I missed)?
Thanks
---