...
Do not use multiple identifiers that vary by only one or more visually similar characters. Also, make the initial portions of long identifiers distinct to aid recognition.
Use L
, not l
, to clarify programmer intent when indicating that an integer literal is of type long
.
According to the Java Language Specification, §3.10.1, "Integer Literals" [JLS 2011],
An integer literal is of type long if it is suffixed with an ASCII letter L or l (ell); otherwise, it is of type int. The suffix L is preferred because the letter l (ell) is often hard to distinguish from the digit 1 (one).
According to §3.10.1, "Integer Literals," of the Java Language Specification [JLS 2011],
...