A

Admin • 828.03K Points
Coach

Q. What is the maximum value that can be stored in a byte variable in Java?

  • (A) 127
  • (B) 255
  • (C) 32767
  • (D) 64
  • Correct Answer - Option(A)
  • Views: 15
  • Filed under category Java
  • Hashtags:

Explanation by: Admin
In Java, the byte data type is a signed 8-bit integer type. Being signed means that it can represent both positive and negative values. The maximum value that can be stored in a byte variable is 127.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.