You are here: Home / Topics / When a byte datatype is used in Java?

When a byte datatype is used in Java?

Filed under: Java Interview Questions on 2024-10-25 14:34:23

A byte is an 8-bit signed two-complement integer. The minimum value supported by bytes is -128 and 127 is the maximum value. It is used in conditions where we need to save memory and the limit of numbers needed is between -128 to 127.

About Author:
J
Java     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.