Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Possible error on Dan's exam

 
Harwinder Bhatia
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chapter 10: Fundamental Classes
Exam 4 / Q. 12

Compiled as it is, the result is: true, true
The answer given is: true, false
The explanation given by Dan is correct if the assignment of h4 is changed to h4=sb2.hashCode(). Moreover, I guess that's the only purpose of having sb2 in this question. Do you guys agree?
I was very reluctant to report this out as I've studied almost all the questions on Dan's exams (except on Collections) and haven't found any other mistake so far. I won't be surprised if I'm missing something here.
Most of the questions are unambiguous and explanations lucid (thanks to Dan).
Thanks
Harwinder
 
Dan Chisholm
Ranch Hand
Posts: 1865
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harwinder,
You are correct. That is an error. I intended to type sb2, but I typed sb1 instead.
I will be uploading a new version of the exam very soon. The correction will be contained in that version.
If you find any more errors, then please don't hesitate to report them. That's how exams are improved.
Thank you!
 
Harwinder Bhatia
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to you, Dan !
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic