title: How does Java store +-Infinite in memory?
body: <p>If it takes all 32 bits to store from -2^31 to 2^31, how can it store + and - Infinite? Does it use more memory? Is it good and safe to store those values?</p>
  
  <p>UPDATE: Thanks to the answers, I know that only floating point data types can store Inf value, Integers can't.</p>