Multiple choice technology programming languages

A byte can be of what size

  1. -128 to 127

  2. (-2 power 8 )-1 to 2 power 8

  3. -255 to 256

  4. depends on the particular implementation of the Java Virtual machine

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Java, a byte is a signed 8-bit integer with a fixed range of -128 to 127. Its size and range are strictly defined by the Java language specification, meaning it does not depend on the JVM implementation, nor does it span from -255 to 256.