public static void main(String[] args) { final long a= 24 * 60 * 60 * 1000 * 1000; final long b= 24 * 60 * 60 * 1000; System.out.println(a/
Plain number in java considered as int. You need to append L to convert to long. Without L a =500654080, which is wrong.
int
long
L
a =500654080
final long a= 24 * 60 * 60 * 1000 * 1000L;// Append L