Post

๐ŸŒ’ Eclipse IDE
๐ŸŒ’ Eclipse IDE@EclipseJavaIDEยท
What will be the output of this program? (don't cheat!)
๐ŸŒ’ Eclipse IDE tweet media
English
72
44
167
0
๐ŸŒ’ Eclipse IDE
๐ŸŒ’ Eclipse IDE@EclipseJavaIDEยท
As a follow up try with i1 = 3, i2 =3
English
3
0
8
0
๐ŸŒ’ Eclipse IDE
๐ŸŒ’ Eclipse IDE@EclipseJavaIDEยท
It has nothing to do with object reference vs value comparison. Would have been too easy ;)
English
1
1
4
0
๐ŸŒ’ Eclipse IDE
๐ŸŒ’ Eclipse IDE@EclipseJavaIDEยท
Answer is False because of the caching mechanism trick of Integer. Read through the answers of those who got it.
English
1
1
4
0
๊ณต์œ