byte keyword in java

The byte keyword is used to declare variable as a numeric type. A byte value can hold an 8-bit integer number which ranges from -128 to 127. For example: byte day = 6; The byte keyword can be used to declare a type of a method parameter as below: public void displayDayOfWeek(byte day) {   […]

Share this article on