duhit Choudhary wrote:yes i have seen that.... but still not clear....
"The unsigned integer value is the argument plus 2^32 if the argument is negative; otherwise, it is equal to the argument."
I'm not sure I can explain it more clearly that that. If you call
Integer.toHexString(-5), it treats it as
Integer.toHexString(2^32 - 5).
Why it does that is related to the way negative numbers are represented in binary. You might want to read about
Two's complement.