Home  |   STIU  |   WOW  |   SCJP  |   SCDJWS   |   JEE FAQ  |   About US  |  

FAQ
  Java FAQ
  JSP FAQ
  Servlet FAQ
 

Advertisement

XyzWs Java FAQ:
Are all values of the Java integral types signed number?


Printer-friendly version Printer-friendly version | Send this 
article to a friend Mail this to a friend


Previous Next vertical dots separating previous/next from contents/index/pdf Contents
Advertisement
XyzWs Java FAQ: Are all values of the Java integral types signed number?

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.


Previous Next vertical dots separating previous/next from contents/index/pdf Contents

Support  | Feedback  | Help