http://javapapers.com/java/java-integer-cache/
http://stackoverflow.com/questions/20541636/compare-non-primitive-long-values-127-and-128
http://stackoverflow.com/questions/1700081/why-does-128-128-return-false-but-127-127-return-true-when-converting-to-integ
Since java.lang.String class override equals method, It return true if two String object contains same content but == will only return true if two references are pointing to same object.
http://stackoverflow.com/questions/20541636/compare-non-primitive-long-values-127-and-128
http://stackoverflow.com/questions/1700081/why-does-128-128-return-false-but-127-127-return-true-when-converting-to-integ
Since java.lang.String class override equals method, It return true if two String object contains same content but == will only return true if two references are pointing to same object.
No comments:
Post a Comment