3 ms·
Yeah - it's a bit non-intuitive you can change the value of a number. https://thedailywtf.com/articles/Disgruntled-Bomb-Java-Edition https://thedailywtf.com/ar
by tpm 2mo ago
Yeah - it's a bit non-intuitive you can change the value of a number.
https://thedailywtf.com/articles/Disgruntled-Bomb-Java-Edition https://thedailywtf.com/articles/Disgruntled-Bomb-Java-Editi...
- inigyou 2mo agoIn Python 2 you could literally do True = False and of course in JavaScript undefined = "a string"
- swiftcoder 2mo agoThe terrifying part of this in Java, is that it applies program-wide, including to constants set before you changed the value
- J-Kuhn 2mo agoSuch hacks will slowly stop working (without explicitly allowing it from the command line.) In this example, it would throw an IllegalAccessException, because java.base doesn't open java.lang.