This question already has an answer here:
- Why do these two multiplication operations give different results? 2 answers
- Why can't I assign a 'long' a value of 4 billion? 6 answers
Why this code in java gives negative value?
long ttt = (60 * 60 * 1000 * 24 * 26);
System.out.println(ttt);
Result which comes as on eclipse console -2134967296
?
Anything silly I am doing, may be it crossed int range I guess?