whats the error in this code? plz help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

whats the error in this code? plz help

public class Program { public static void main(String[] args) { byte b=50; b=b*2; System.out.print(b); } }

27th Jun 2016, 1:31 PM
Sagar Agrawal
Sagar Agrawal - avatar
1 Answer
0
byte b=(byte)50; b=(byte)(b*2);
27th Jun 2016, 4:24 PM
Daniel Rajer
Daniel Rajer - avatar