I am trying following program.
int var = 012;
int result = var % 10;
output:
result = 0
I am not able to understand why java is not able to consider 012 as 12.
I am trying following program.
int var = 012;
int result = var % 10;
output:
result = 0
I am not able to understand why java is not able to consider 012 as 12.