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); } }
1 Answer
0
byte b=(byte)50;
b=(byte)(b*2);