Robin Hillyard
Oct 20, 2024

Your article covers a genuine idiosyncracy of Java. But your clickbait title is rubbish!

int x = 128;

int y = 128;

if (x == y) System.out.println("Bingo!");

According to your premise, we should see nothing printed. But guess what. We get Bingo!

Robin Hillyard
Robin Hillyard

Written by Robin Hillyard

I’ve been addicted to programming for over 50 years now. I currently teach two classes to graduates at Northeastern University, Boston, USA.

No responses yet