相关考题
-
单项选择题
public class SyncTest ( private int x; private int y; private synchronized void setX (int i) (x=1;) private synchronized void setY (int i) (y=1;) public void setXY(int 1)(set X(i); setY(i);) public synchronized Boolean check() (return x !=y;) ) Under which conditions 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 only return true if SyncTest is changed to allow x and y to be set separately. -
判断题
物联网就是互联网和物品结合在一起。 -
判断题
政府1.0以政府为中心,就是政府在每一项公共事务中扮演着较为单一或者主导性的角色。
