Right...in my point of view the both A and B would be correct!
A - f1.getBar() == null B - b2.getFoo() == null
I was taking a look at the HFEJB errata, and i can see this:
 q4, ANSWER C; --> b1.getBar() = null should be b1.getFoo() - right it makes sense and that's correct too!!
BUT anyway...in my understanding the option B and A are still correct since the relationship between these objects are one to one bidirectional and the B2 reference would receive null after having F2 assigning B1, right?
Please...help us on this!!!
Tks in advance!! ;-)
SCJP | SCWCD | SCBCD | SCWSD 5 | SCEA (I) 1.4 | SCEA 5 | IBM SOA 669
I totaly agree with your understanding. Even I think both A and B options are correct, as the relationship is given one to one from both the side. So once b1 is assigned to f2,both f1 and b2 will loose there earlier assignments(because of the given one to one relationship) and become null. [ September 10, 2007: Message edited by: Neetika Sood ]