Originally posted by sid sree:
in Java are only negetive numbers represented as 2's complement ??
In Java, the byte, short, int, and long primatives are all represented in 2's complement notation. In fact, most processors, Intel, PowerPC, Sparc, etc. all use 2's complement notation to represent integer types.
2's complement notation can represent both positive and negative numbers.
Henry