Q. Which of the following is the correct way to declare a byte variable named myByte and initialize it to 5 in Java?
β
Correct Answer: (A)
byte myByte = 5
Explanation: The correct answer is Option A: byte myByte = 5.