Let's say i declare this variable:
long k = 1060606060000;
Because the literal value will always be interpreted as
int, if not appended with
You would be assigning a literal
int to a variable of type
long if the
l wasn't specified.
At compile-time, the compiler checks on the literal value first and if
L is not appended, it will interpret it as
Now, if the number is larger than
Integer.MAX_VALUE, the compiler will display an error.