Integer a= 127与Integer b = 127相等吗?

答案解析

相等。-128到127之间的Integer会缓存,a==b为true,超出范围为false。