+ 5
Yes the underscore was included in Java to enhance readability. For eg if you have a big number, it is difficult to make out how much it is since you cannot include "," for separation. So they came up with the idea of including underscore character. int a = 100000; int a = 1_00_000; Both are same, hence it returns true.
18th Dec 2019, 1:23 PM
Avinesh - avatar