public class MainClass{ public static void main(String[] argv){ int n2 = 4096L ; // would require a specific (int) cast System.out.println(n2); } }
Type mismatch: cannot convert from long to int