我从《java concurrency in practice》得到以下代码:
public class Holder{
private int n;
public Holder(int n){this.n = n;}
public void assertSanity(){
if(n != n) throw new AssertionError("This statement is false.");
}
}
我只是想知道条件n != n
,在某种情况下可能是这样吗?</p>