• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error in the mock exam (HFE)

 
Greenhorn
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?

Vitaliy
 
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic