Compare the following program?
public class CrossCheck1 {
public static void main(String args[]) {
short s = 10;
int a = s;
s += 10;
System.out.println(s + "," + a);
}
}
public class CrossCheck2 {
public static void main(String args[]) {
short s = 10;
int a = s;
s = s + 10;
System.out.println(s + "," + a);
}
}