4.2.12.Relaxation of assignment applies only when the assigned value is an integral literal.
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)