This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in Inquisition Question

 
Santiago Bravo
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SCJP Quiz by the muppeteer, question 24:

What comes on screen?


I had incorrectly selected that the compilation fails. But then I remembered that the array delcaration is ok. So when I compiled and ran the code the output was null. The explanation in Inquisition says that "compilation fails" is correct.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Santiago Bravo:
The explanation in Inquisition says that "compilation fails" is correct.


Well, so you've learned something about what test preparation material not to use. "null" is of course the correct answer.
 
Matt Russell
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ernest Friedman-Hill:
Well, so you've learned something about what test preparation material not to use. "null" is of course the correct answer.

I'm sure there are still errors in Inquisition's question banks, but in this particular case that question was fixed in the most recent release of the engine (last June). So if you are going to use Inquisition, please grab the most recent version!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic