• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

K&B Exam - incorrect answer?

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(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
---
 
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ho ho ho.. finally another rancher that has the same problem
https://coderanch.com/t/242576/java-programmer-SCJP/certification/Possible-error-Master-Exam
I wonder if we are the only ones.. no one seems to complain
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
BTW, do you get the same answer as mine?
 
Toby Davis
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Andres Gonzalez:
BTW, do you get the same answer as mine?


Yes. Exam II keeps insisting compilation error... and I keep insisting it's a runtime exception. Bert's master copy is correct, CD copy is not. Hmph.
 
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ack. That same question appears twice in Exam II. My answer of runtime exception was scored as incorrect both times.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Marlene Miller:
Ack. That same question appears twice in Exam II. My answer of runtime exception was scored as incorrect both times.


Mine too.. But I manually added 1 question as correct one, instead of incorrect
 
The knights of nee want a shrubbery. And a tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic