|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#94. Given: 1. public class SyncTest { 2. private int x; 3. private int y; 4. public synchronized void setX (int i) (x=1;) 5. public synchronized void setY (int i) (y=1;) 6. public synchronized void setXY(int 1)(set X(i); setY(i);) 7. public synchronized Boolean check () (return x !=y; ) 8. )
Under which conditions will check ()return true when called from a different class?
Show comments for this question (0)
Add comments
Link to this question
|
|
|
|
gen. 0.187
|
Server date 06:35 10-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|