Underscore binary literal : Number Literal « JDK 7 « Java






Underscore binary literal


public class Test {
  public static void main(String[] args) {
  byte initializationSequence = (byte) 0b01_110_010;
  byte inputValue = (byte) 0b101_11011;

  }
}

 








Related examples in the same category

1.Using underscores in literals to improve code readability
2.Float number and underscore literal