Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Wiki Markup
According to Sun's Secure Coding Guidelines document \[[SCG 2007|AA. Bibliography#SCG 07]\]

...

  • For byte, from –128 to 127, inclusive
  • For short, from –32768 to 32767–32,768 to 32,767, inclusive
  • For int, from –2147483648 to 2147483647–2,147,483,648 to 2,147,483,647, inclusive
  • For long, from –9223372036854775808 to 9223372036854775807–9,223,372,036,854,775,808 to 9,223,372,036,854,775,807, inclusive
  • For char, from '\u0000' to '\uffff' inclusive, that is, from 0 to 6553565,535

The table below shows the integer overflow behavior of the integral operators.

...