Java byte Keyword

Java byte Keyword


Byte Keyword In Java
This data type can store numbers from -128 to 127. This can be used instead of int or other integer types when the given value is taking 1-byte space.
It is mainly used when the inputting value is going to be less then int size which is 4 byte, or 1 byte.
Example - 
Output -