不定项选择题 Which keyword should be used to enable interaction with the lock of an object? The flagallows exclusive access to that object.
   A.transient                          B.synchronized
   C.serialize                         D.static
【正确答案】 B
【答案解析】