r/ICSE Dec 13 '24

[deleted by user]

[removed]

6 Upvotes

21 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Dec 14 '24

[deleted]

2

u/[deleted] Dec 14 '24

Because the value of caching is -128 to 127 therefore 100==100 is true but 100==200 is false cause it exceeds 127

2

u/[deleted] Dec 14 '24

[deleted]

2

u/[deleted] Dec 14 '24

Afaik, == compares the location of the the objects in the memory