Hi All,
I am not able to understand how come ~10 is displaying -11?
the Binary value of 10 is 1010 and one's complement gives 0101 which is 5. As the sign bits are changed, it should be -5. If I print the binary
string, then also it is printing "11111111111111111111111111110101".
But if I print toString it is again giving same -11.
Any body please clarify how it is displaying -11.
Thanks in Advance,
Regards,
Swathi.