• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Error in the mock exam (HFE)

Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
straws are for suckers. tiny ads are for attractive people.
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic