| |
1.13.1.To indicate a long (64-bit) literal, append the suffix L to the literal expression. |
|
//By default, an integral literal is a 32-bit value.
public class MainClass {
public static void main(String[] argv) {
long aLongValue = 100L;
aLongValue = 100l; // lower case is legal but hard to read
System.out.println(aLongValue);
}
}
|
|
|