将长整型值相乘?
2022-09-02 23:12:44
class Main {
public static void main (String[] args){
long value = 1024 * 1024 * 1024 * 80;
System.out.println(Long.MAX_VALUE);
System.out.println(value);
}
}
输出为:
9223372036854775807 0
如果!long value = 1024 * 1024 * 1024 * 80L;