then answer is true !!! I know variables contains bits representing the value and here above 5.0 ( i think its double ) is equal to 5 ( long ) why ? is it because both are 64 bits..

but what about long store decimals in bits.. how it can be same ? pls reply

Hi, During == operator i think long gets promoted to float as 5.0 and hence the == operator returns true. The same can be observed during comparisons of the following types:=