Java7 Underscores in Numeric Literals

Tutorials Shared by the Internet Community

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

Java7 Underscores in Numeric Literals

Java7 Underscores in Numeric Literals
http://www.javatutorialscorner.com/2013/12/java7-underscores-in-numeric-literals.html
  • Total Hits: 2893

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 0 votes

  • Category: JAVA/Core JAVA

  • Submitted on: 2014-03-16 08:56:13

  • Submitted By: Appu T

  • Set as Favorite

Description:

In this tutorial we are going to see underscores in numerical literals. Note: In this tutorial some of code taken from Oracle official web site In Java7 any number of underscore character (_) can appear in anywhere between numerical literals.The underscore is only present in the representation of literals in Java code, it will not appear if you print the literal value. Example int i = 1000_1000; Output 10001000 Examples to use underscore between numerical liters. long creditCardNumber = 1234_5678_9012_3456L; long socialSecurityNumber = 999_99_9999L; float...    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 0%  0
 Two starsTwo star  Vote LeftVote MiddleVote Right 0%  0
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 0%  0
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 0%  0
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 0%  0

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.






Advertisements