Hello friends
could any one explain why my code is printing true
if(0.0 == -0.0) {
System.out.println("true");
}
else{
System.out.println("false");
}
and if if i write this
if(0.0 == -0.5) {
System.out.println("true");
}
then it is printing dead code.
please explain