• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Bates/Sierra SCJP 5.0 MasterExam Error  RSS feed

Posts: 9
  • Mark post as helpful
  • send pies
  • 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.

[ July 09, 2007: Message edited by: Justin Searls ]
Posts: 1
  • Mark post as helpful
  • send pies
  • 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:
grapes are vegan food pellets. Eat this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!