• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Bonus Master Exam issues

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic