Replies
Welcome, guest
Join CrazyEngineers to reply, ask questions, and participate in conversations.
CrazyEngineers powered by Jatra Community Platform
-
@omesh3-FD9oas • Nov 25, 2009
011 is octal for 9. Java interprets numbers starting with "0" as octal numbers (numbers with base 8). Remove the leading zero and you will get a different print out.๐
0-9 in base 8 (octal):
0 = 000
1 = 001
2 = 002
3 = 003
4 = 004
5 = 005
6 = 006
7 = 007
8 = 010
9 = 011