title: How to get the maximum safest integer of a Double in Java
body: <p>Having in mind that Java's <a href="http://docs.oracle.com/javase/specs/jls/se7/html/jls-4.html#jls-4.2.3">doubles</a> are 
  <a href="https://en.m.wikipedia.org/wiki/Double_precision_floating-point_format">double-precision floating-point</a> numbers.
  And the maximum integer without loosing precision is <strong>9007199254740991</strong> or <strong>2<sup>53</sup>-1</strong></p>
  
  <p><strong>Is there any clean way of getting this value?</strong> 
  For instance, like a constant as in JavaScript's <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER">MAX_SAFE_INTEGER</a></p>