当前位置: 技术问答>java相关
请问哪些情况必须在数值的后面加上字符'L'或'l'?
来源: 互联网 发布时间:2015-03-04
本文导语: | 当类型为long时 | Integral literals are of type int unless explicitly followed by the letter "L".The L indicates a long value. In the Java programming language,you can usr either an uppercase or lowercase L,but lowercase...
|
当类型为long时
|
Integral literals are of type int unless explicitly followed by the letter "L".The L indicates a long value. In the Java programming language,you can usr either an uppercase or lowercase L,but lowercase is a poor choice because it is usually hard to distinguish it from the digit 1.