Single Choice Easy

QWhat is the default value of a byte datatype in Java?

ID: #22194 byte - Data Type in Java 113 views
Question Info
#22194Q ID
EasyDifficulty
byte - Data Type in JavaTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 0
  • B 0.0
  • C null
  • D undefined
Correct Answer

Explanation

The default value of a byte datatype in Java is 0. If you declare a byte variable without assigning it a value, it will be initialized to zero automatically.

Share This Question

Challenge a friend or share with your study group.