Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to answer "compile error on line ##"?

 
Vad Fogel
Ranch Hand
Posts: 504
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
K&B, p. 484:


what is the result?
A. An exception occurs at runtime.
B. true
C. fred
D. Compilation fails because of an error on line 3.
E. Compilation fails because of an error on line 4.
F. Compilation fails because of an error on line 8.
G. Compilation fails because of an error on a line other than 3, 4, or 8.

The correct answer is G. I selected F and that was wrong. Here's the 1.4.2 compiler listing:

Should we assume based on
Famous Error thread
that such questions on the real exam will be less ambiguous?
 
Kathy Sierra
Cowgirl and Author
Rancher
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy --
Actually, this IS the "famous error thread" question
So yes, you can completely relax about questions like this on the real exam. The exam has been pounded on enough by now (almost as much as our book has ) that any thing that is *truly* ambiguous is now gone. I say *truly* become there are some questions that may *appear* ambiguous if you aren't looking at the right thing, but they really aren't.
cheers,
Kathy
 
Vad Fogel
Ranch Hand
Posts: 504
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Kathy for this very quick response!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic