πŸ“Š JAVA
Q. What is the maximum value that can be stored in a byte variable in Java?
  • (A) 127
  • (B) 255
  • (C) 32767
  • (D) 64
πŸ’¬ Discuss
βœ… Correct Answer: (A) 127

Explanation: 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.

Explanation by: Gopal Sharma
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.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
166
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
93%
Success Rate