I observed that in Java when I do this:
public static void main(String[] args){
int i = 45;
int j = 045;
System.out.println("i:>>"+i);
System.out.println("j:>>"+j);
}
The output is:
i:>>45
j:>>37
Why this is happening? The value of j
is printed as 37
when it is 45
?
Could anybody please guide? Thanks in advance.