Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Java: Is there any difference between using l and L to declare long type?
Java: Is there any difference between using l and L to declare long type?

When declaring long type in JAVA, there is no difference between using l and L, and the functions achieved are the same.

However, it is encouraged to use L to represent long type in programming, because l is often misunderstood as the number "1", which is not conducive to the readability of the code.