3 ms·
1. it's a slower check, just like equals() intended for value equality is slower than reference equality == in java. 2. 1 == True and 0 == False, as booleans s
by Vaphell 6y ago
1. it's a slower check, just like equals() intended for value equality is slower than reference equality == in java.
2. 1 == True and 0 == False, as booleans subclass the int type. On the other hand is distingushes between 1 and True, and 0 and False respectively.