When you type a series of digits, it is the literal representation of the number. In this specific case it is a literal int being assigned to a variable of type long.
String s = 'c';
Here, c is a...
Type: Posts; User: jps
When you type a series of digits, it is the literal representation of the number. In this specific case it is a literal int being assigned to a variable of type long.
String s = 'c';
Here, c is a...
2147483648 is too large to be an int, and is being represented as a "literal int"
2147483648L is the representation of a "literal long"