Java Numeric Literals with UnderscoreJava allows you to use underscore in numeric literals. This feature was introduced in Java 7. This feature enables you, for example, to separate groups of digits in numeric literals, which can improve the readability of your source code. The following points are considerable:
Underscores in Numeric Literals ExampleOutput: a = 1000000 b = 10.5 c = 10 d = 17 e = 9 Next TopicJava 7 JDBC Improvement |