I was trying to see what is true table for some Type in Java.
And i cant understand way top one returns true and one below false ?
public class CompareTypes{
public static void main(String[] args){
// -------------------------------------
Integer AA = 12;
Integer BB = 12;
System.out.println( AA == BB ); // true
// -------------------------------------
Integer a = 128;
Integer b = 128;
System.out.println( a == b ); // false
}
}