Java7 Binary Literals

Tutorials Shared by the Internet Community


  Top Tutorials     New Tutorials     Submit     Login     Register  

Java7 Binary Literals

Java7 Binary Literals - Java Tutorials Corner
  • Total Hits: 5035

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating


  • Total Votes: 5 votes

  • Category: JAVA/Core JAVA

  • Submitted on: 2014-03-16 08:59:52

  • Submitted By: Appu T

  • Set as Favorite


In this tutorials we are going to see the integral types (byte, short, int, and long ) in java7.This tutorials is created by referring Oracle official web site.Some content is taken from there. In Java7, the integral types (byte, short, int, and long ) can also expressed using binary number system.To specify binary literal, add prefix 0b or 0B to the number.Example for binary literals: 1. 8-bit byte value : byte b = (byte)0b00010001; 2. 16-bit short value : short s = (short)0b1000100010001000; 3. 32-bit int values : int i1 = 0b001;... - See more at:    More detail...

Rating Detail

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

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.