日韩欧美亚洲 _ 欧美亚洲一区 _ 日本亚洲欧美 _ 亚洲精品欧美 国产白袜脚足J棉袜在线观看_亚洲熟妇av一区二区三区_久久天天躁狠狠躁夜_精品众筹模特私拍在线

單項(xiàng)選擇題

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.

題目列表

你可能感興趣的試題

判斷題

物聯(lián)網(wǎng)就是互聯(lián)網(wǎng)和物品結(jié)合在一起。

答案: 錯(cuò)誤
微信掃碼免費(fèi)搜題