Clarification about “int” number that begins with 0

后端 未结 4 1192
难免孤独
难免孤独 2021-01-20 05:28
public class Test {

    public static void main(String[] args) {
        int i = 012;
        System.out.println(i);
    }
}

Why the output is : <

4条回答
提交回复
热议问题