I have a code
class Int
{
public static void main(String[] args)
{
a(Integer.MAX_VALUE , Integer.MAX_VALUE);
}
staticvoid a(double a , float b)
{
if( a == b)
System.out.println("equal");
else
System.out.println("not equal");
}
}
This is gives "not equal"
This is only for Integer.
But if you use Byte,Short, Long, Float it gives "equal"
Let me know what is the behind reason