Versions Compared

Key

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

...

The noncompliant code example accepts a value from the user without validating it. If this Any value is with greater than 255, it will result in a wrap aroundeight bits will be truncated. For instance, write(305303) will print '1/' since the lower order bits of 305 303 are preserved while the top 24 order bits are lost (305 is 0x131 in Hex so the last Hex digit '1' is displayed303 mod 256 is 47 and '/' has ASCII code 47). That is, the result is remainder modulo 256 of the absolute value of the input.

...

Wiki Markup
\[[API 06|AA. Java References#API 06]\] [method [write()|http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html#write(int)]
\[[Harold 99|AA. Java References#Harold 99]\]

...