Pls let me know Difference between char and byte data types in core java
Difference between char and byte data types
Collapse
X
-
Ripped straight from the Java Language Specification:
4.2.1 Integral Types and Values
The values of the integral types are integers in the following ranges:
For byte, from -128 to 127, inclusive
For short, from -32768 to 32767, inclusive
For int, from -2147483648 to 2147483647, inclusive
For long, from -922337203685477 5808 to 922337203685477 5807, inclusive
For char, from '\u0000' to '\uffff' inclusive, that is, from 0 to 65535
kind regards,
JosComment
Comment