class Main { public static void main (String[] args){ long value = 1024 * 1024 * 1024 * 80; System.out.println(Long.MAX_VALUE); System.out.
I suspect it's because by default java treats literals as integers, not longs. So, without the L on 80 the multiplication overflows.