I wrote a program which i suppose should print true , Instead its giving false as out put.
public class Test {
public static void main(String[] args) {
double i = 0.0 / 0.0;
System.out.println(i - i == 0);
}
}
Can some one explain me why it is behaving so .