• Post Reply Bookmark Topic Watch Topic
  • New Topic

Bonus Master Exam issues  RSS feed

Estelle DeBlois
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Question #37 of the Bonus Master Exam for SCJP 6 states that, among the statements that are true: "Both Currency and NumberFormat objects must be constructed using static methods."

Problem: The SCJP 6 Study Guide (K&B) never talks about the Currency class, only NumberFormat.getCurrencyInstance().


2. Question #7:

1. class Plant {
2. String getName() { return "plant"; }
3. Plant getType() { return this; }
4. }
5. class Flower extends Plant {
6. // insert code here
7. }
8. class Tulip extends Flower { }

Which statement(s), inserted at line 6, will compile? (Choose all that apply.)

Correct Answer
A: Flower getType() { return this; }
C: Plant getType() { return this; }
D: Tulip getType() { return new Tulip();

Problem: I chose A and C only because D is missing the closing curly brace... The system marked my answer as wrong.


3. Question #73:

[some code not shown here]

Correct Answer
B: Compilation fails due to a single error in the code.
C: Compilation fails due to multiple errors in the code.
E: By default, the readPassword() method echos the users keystokes.

C, D and F are correct. The System class method is console() not getConsole(), and the
readline() method returns a String not a char[].
A, B, and E are incorrect based on the above.

Problem: The Correct answers and explanations don't match. If you check C, D, and F, your response will be marked "incorrect". However, clearly, there's a problem with the correct answers. How could you have both B and C at the same time anyway?

I hope the real exam doesn't actually have issues like these... (The one about Currency is debatable, but still, it would have been nice if it had been in the Study Guide).
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!