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!