August 22, 2017

Underscore Numerals in Java

Using underscores in numerals is allowed in Java. This is for better readability and representation. The example below illustrates the same value being written in two different forms and results in the same value. public class UnderscoreNumerals{ public static void main(String args[]) { UnderscoreNumerals underscoreNumerals = new UnderscoreNumerals(); underscoreNumerals.proceed(); }