| Java FAQ | ||
| JSP FAQ | ||
| Servlet FAQ | ||
XyzWs Java FAQ:
Are all values of the Java integral types signed number?
Printer-friendly version |
Mail this to a friend
|
Advertisement
|
Are all values of the Java integral types signed number?The answer is no. According to Java Langauge Specificiation, the integral types defined in Java are byte, short, int, long, and char. The values of byte, short, int, and long are signed two's-complment integers, but the values of char are 16-bit unsigned integers which represents UTF-16 code units. |