This Program prints 1 but It should print 2. Can anyone explain this to me ?
public class Exp {
public static void main(String[] args) {
Integer abc = 1;
sum(abc);
System.out.println(abc);
}
private static void sum(Integer abc) {
abc = 2;
}
}