I am running following simple java code for arrays.
public class MyArray
{
public static void main(String args[])
{
int ar[] =
{
08, 047, 06, 05, 04, 03, 02, 091
};
}
}
The error I got is
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type:
I know the error is because I wrote integer '8' as '08' & '91' as '091' (rest worked fine) as Netbeans showed the error of size too large. I want to know the reason behind it. Also when I print ar1, the value printed is 39 not 47.