Why int j = 012 giving output 10?

In my actual project It happened accidentally here is my modified small program. I can’t figure out why it is giving output 10? public class Int { public static void main(String args[]) { …