For the following:
boolean hashFlag = (x.hashCode() == y.hashCode());
boolean equalsFlag = x.equals( y );
boolean eqFlag = ( x == y ) ;
I would think the statement:
"If equalsFlag is false, then eqFlag must be false"
should be true. If equalsFlag is false, then the contents of x and y must be different, or they are of different types. Either way, they can't occupy the same memory location.
The exam was helpful, it pointed out my weak spots. You have a passing grade of 61.5% - isn't the real exams passing grade lower, something like 51%?
Thanks,
Greg
[ December 15, 2002: Message edited by: Greg Windwall ]
[ December 15, 2002: Message edited by: Greg Windwall ]
[ December 15, 2002: Message edited by: Greg Windwall ]