题目内容

public class SyncTest { private int x; private int y; public synchronized void setX (int i) (x=1;) public synchronized void setY (int i) (y=1;) public synchronized 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.
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.

查看答案
更多问题

什么是反射定律

分泌雄激素结合蛋白的是()

A. 精子细胞
B. 初级精母细胞
C. 支持细胞
D. 睾丸间质细胞
E. 精原细胞

怎样染毒方式和受试物的配制?

为什么虾胶、鱼胶要顺一方向擦打法制作?

答案查题题库