public class SyncTest { private int x; private int y; private synchronized void setX( int i ) { x = i; } private synchronized void setY( int i ) { y = i; } public void setXY( int i ) { setX(i); setY(i); } public synchronized boolean check() { return x != y; } } Under which condition will check return true when called from a different class? ()
A. check can never return true.
B. check can return true when setXY is called by multiple threads.
C. check can return true when multiple threads call setX and setY separately.
D. check can return true only if SyncTest is changed to allow x and y to be set separately.
查看答案
以下不属于过度运动的征兆是()
A. 肌肉持续酸痛
B. 难以入睡
C. 食欲大增
D. 紧张不安
()指材料在拉伸条件下,所能承受的最大载荷值。
A. 抗拉强度
B. 塑性
C. 硬度
D. 韧性
真趣亭匾为清代()皇帝游园时所题,亭画栋雕梁,金碧辉煌,显示出与素雅的苏州园林不同的皇家气派。