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[])
{
int j=012;//accidentaly i put zero
System.out.println(j);// prints 10??
}
}
After that, I put two zeros still giving output 10.
Then I change 012 to 0123 and now it is giving output 83?
Can anyone explain why?