• 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 ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Bates/Sierra SCJP 5.0 MasterExam Error

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First, hats off to Bates/Sierra, their book is excellent. I only found a couple of technicalities I disagreed with throughout the book. This question has to do with the LearnKey MasterExam bundled with the CD.

Though I passed the practice exam on my first go with some amount of wiggle room, I'm reviewing my incorrect answers now to try to learn from my mistakes. Using the answer guide PDF generated by the application, I'm having a bit of a hard time figuring out how this might be correct:



The possible responses (not printed on the answer guide for whatever reason), were:

A. x2.equals(x1) == true
B. x3.hashCode() != x4.hashCode()
C. x5.hashCode() == x6.hashCode()
D. x8.equals(x7) == true

The text of the answer guide's explanation on the study guide goes on to say that C is the correct answer (which is rather obvious). I know I put C, the fact it's on the answer guide means I was graded wrong, and since the answer guide is purporting to say that x2.equals(x1) is always true in this case, I felt like it was worth posting here (1) to warn people that this problem might be throwing off their score/understanding, (2) verify that I'm actually correct in asserting all this and not just incredibly groggy/misguided.

Thoughts?
[ July 09, 2007: Message edited by: Justin Searls ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just came across this one myself, and I'm pretty sure that

is the correct answer. "x2.equals(x1) == true" makes no sense, given line 12 in the source code:
 
knowledge is the difference between drudgery and strategic action -- tiny ad
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic