Possible Duplicate:
09 is not recognized where as 9 is recognized
Just wondering, when I declare the following:
public static final long __VERSIONCODE = 0L;
public static final long __VERSIONCODE = 9L;
that will work, but whenever I try this:
public static final long __VERSIONCODE = 09L;
public static final long __VERSIONCODE = 08235L;
I get an error (in eclipse):
"The literal 09L of type long is out of range."
So I thought that was because it started with a zero.
but then I tried with the second digit lower as eight:
public static final long __VERSIONCODE = 07235L;
which gives me NO error.
then:
public static final long __VERSIONCODE = 07239L;
gives me also an error too.
So I really don't get the point of which values I can assign to a long and which I can't. Why do I get this errors? (It's actually just that I'm curious, I can also just use a String for my version code).
Also, I forgot to mention that this behaves exactly the same using doubles instead of longs.