0

I tried to add the following integers together. But I wondered after see the output of the program.

class Test{
    public static void main(String[] args) {
        int a = 070;
        int b = 010;
        System.out.println(a+b);
    }
}

Output 64 Then how It happened I expected 80(10+70)

Hilton
  • 337
  • 6
  • 19

0 Answers0