code:
public class Main{
public static void main(String[] a){
long t=24*1000*3600;
System.out.println(t*25);
System.out.println(2
To explain it clearly,
System.out.println(24*1000*3600*25);
In the above statement are actually int literals. To make treat them as a long literal you need to suffix those with L.
System.out.println(24L*1000L*3600L*25L);
Caveat, a small l will suffice too, but that looks like capital I or 1, sometimes. Capital I doesn't make much sense here, but reading that as 1 can really give hard time. Furthermore, Even sufficing a single value with L will make the result long.