• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in the mock exam (HFE)

 
Vitaliy Geraymovych
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I think there is an error in HFE on page 432. question 4.
It gives correct answers as A and B. In my opinion B is wrong
because the question states that relationship is unidirectional
from Foo to Bar so the method call from b2.getFoo() is incorrect
because it would mean that relationship is bidirectional.
I checked with the spec (p. 138) and I think I am correct.

There is also a posibility that this is a editing error.

This particular question has several mispellings:
1. E. and D. in the none of the above (already reported in the errata)
2. Answer C in has b1.getBar() on page 426 and has b1.getFoo() on page 432
3. Possibly answer B is mispelled also. If we can change it to f2.getBar() it will be correct.

What do you all think?

Vitaliy
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question has been asked about a million times before ... but yeah, the questions got a boo-boo. Congrats for catching it. I don't have the question memorized, so I can't confirm your conclusion, but the fact that it's a unidirectional relationship is central to the error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic