In java, why if(1_0==10) is true? | Sololearn: Learn to code for FREE!

+3

In java, why if(1_0==10) is true?

7/5/2019 2:20:16 PM

Deekshitha

1 Answer

New Answer

+10

Interesting... someone asked this question not so long ago: https://www.sololearn.com/Discuss/1873019/?ref=app Basically, underscore increases readability for large numbers, like 1_000_000.