Basics

The Real Value of an int Variable Starting with 0 in Java

The Real Value of an int Variable Starting with 0 in Java

In Java, an int literal starting with 0 is interpreted as an octal (base-8) number. This article explains how Java represents octal integers.