空心菜
菜
发贴: 214
积分: 41
|
于 2003-08-05 20:16
Which two statements are true regarding the returnvalues of property written hashCode and equals methods from two instances of the same class?(chz two) A.If the hashCode values are different,the objects might be equal. B.If the hashCode values are same,the object might be equal. C.If the hashCode values are same,the objects might be equal. D.If the hashCode values are different,the objects might be unequal.
What happens when thread X executes a wait() method on object A, without owning object A's lock? A.Compilation fails. B.Anexception is thrown. C.The wait() method has no effect. D.Thread X receives the lock immediately. E.Object A moves the thread to the wait pool. 不知该选什么,还望指教
why edited on 2003-08-06 00:05
|