i answered c for da below question:
pubic class ScjpTest {
private int x;
private int y;
public synchronised void setX (int i) (x=1

public synchronised void setY (int i) (y=1

public synchronised void setXY (int i) (setX(i);setY(i)

public synchronised 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 ScjpTest is changed to allow x and y to be set separately
NE1 can help wif dis question?
thz
rgs,
u4ria