Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Please anyone tell me how I got 55 answer for the below code.
byte myByte = 067; System.out.println("Byte value: " + myByte);
I got answer as below Byte value: 55
Thanks.
067
067 is octal number notation in Java (due to leading 0).
0
OCT 67 = 6*8 + 7 = 55
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
067
is octal 67, which is decimal 55.