Underscore binary literal : Number Literal « JDK 7 « Java
- Java
- JDK 7
- Number Literal
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