public class MainClass{ public static void main(String[] argv){ int i = 12; byte b = i; } }
Exception in thread "main" java.lang.Error: Unresolved compilation problem: Type mismatch: cannot convert from int to byte at MainClass.main(MainClass.java:4)