This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes how to answer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "how to answer "compile error on line ##"?" Watch "how to answer "compile error on line ##"?" New topic
Author

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

Vad Fogel
Ranch Hand

Joined: Aug 25, 2003
Posts: 504
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
Ranch Hand

Joined: Oct 10, 2002
Posts: 1572
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

Joined: Aug 25, 2003
Posts: 504
Thank you very much Kathy for this very quick response!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to answer "compile error on line ##"?
 
Similar Threads
Clarification for 1 question from K and B book - Chapter 8 - Inner classes.
K&B SCJP 5: Chapter 8, Self Test 9, wrong answer?
Question in K&B Chapter 8
Inner Classes
K&B CHAPTER:8 q.no:9.........