+ 1
Why is (5_000_000 == 5000000) true
The use of the underscore between digits
3 ответов
+ 4
Mickey
If you want to write lengthy numeric literals like that then use underscores. This feature was introduced in Java 7. That's for better readability.
+ 2
5_000_000 is equivalent to 5,000,000 which is equivalent to 5000000 and hence true