title: Why do integer datatypes overflow silently rather than throwing exception
body: <p>I have learnt(atleast in java) that integer/long values overflow silently and their values start over from minimum value on overflow rather than throwing any exception.</p>
  
  <p>I was using an external api for some file operations, in which max file size was being loaded from a property file. All was fine in my local testing environment. As soon as the code went to live environment, the max file size limit was not working at all. After two days of debugging/analyzing the code, there was no success at all. Then for some other reasons, I took the live constants.properties file and debugged the code with that. o_0</p>
  
  <p>I just want to ask, what prevented them to throw exception on overflow?</p>