Please Visit: http://ift.tt/1ajReyV
from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1ntCurw
via LifeLong Community
Java ==: String Intern and Integer Cache
Integer int == public void testIntegerCache() {
Integer i = 123;
Integer j = 123;
assertTrue(i == j);
Integer heapK = new Integer(123);
assertFalse(i == heapK);
// heapK is auto-unboxed to the primitive value 123
assertTrue(123 == heapK)...
Integer int == public void testIntegerCache() {
Integer i = 123;
Integer j = 123;
assertTrue(i == j);
Integer heapK = new Integer(123);
assertFalse(i == heapK);
// heapK is auto-unboxed to the primitive value 123
assertTrue(123 == heapK)...
from Public RSS-Feed of Jeffery yuan. Created with the PIXELMECHANICS 'GPlusRSS-Webtool' at http://gplusrss.com http://ift.tt/1ntCurw
via LifeLong Community
No comments:
Post a Comment