class Main {
public static void main (String[] args){
long value = 1024 * 1024 * 1024 * 80;
System.out.println(Long.MAX_VALUE);
System.out.println(value);
}
}
Output is:
9223372036854775807 0
It's correct if long value = 1024 * 1024 * 1024 * 80L;
!