1

What is the error in this code? byte b = 50; b = b * 50;

Correct Answer: * operator has converted b * 50 into int, which can not be converted to byte without casting.

Make the most of this question

This page focuses on one JAVA MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

JAVA MCQs MCQ: What is the error in this code? byte b = 50; b = b * 50; | Extra Education