Java7 Binary Literals

Tutorials Shared by the Internet Community

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

Java7 Binary Literals

Java7 Binary Literals
http://www.javatutorialscorner.com/2013/12/java7-binary-literals.html
  • Total Hits: 3411

  • 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

Description:

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: http://www.javatutorialscorner.com/search/label/Java    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.






Advertisements