Sorry, Latha, I don't really understand what you're asking. Are you not sure about how
Java represents negative numbers - i.e that the left-most bit (most significant bit) indicates whether or not the number is negative and how 2's complement is used to represent numbers. Or are you unsure how to use the complement operator and what result you'll get?
Kathy