Can someone please help explain the outcome of this piece of code ?
int x = 010;
double y = 2.5;
double erg = x + y;
x++;
System.out.println("x is " + x);
System.out.println("y is " + y);
System.out.println("erg is " + erg);
After running it, the outcome is :
x is 9
y is 2.5
erg is 10.5