InterviewSolution
| 1. |
What Is The Primitive Type Byte? |
|
Answer» A byte is a primitive Java data type that uses eight BITES to represent a number ranging from -128 to 127. The following statements declare two byte VARIABLES. The FIRST variable, flag_bits, can store one value. The second byte variable, data_table, is an array, capable of HOLDING four VALUES. In this case, the Java compiler will preassign the array elements using the values specified between the left and right braces:
A byte is a primitive Java data type that uses eight bites to represent a number ranging from -128 to 127. The following statements declare two byte variables. The first variable, flag_bits, can store one value. The second byte variable, data_table, is an array, capable of holding four values. In this case, the Java compiler will preassign the array elements using the values specified between the left and right braces: |
|