previous | start | next

Answers

  1. Image data is stored in a binary format–try loading an image file into a text editor, and you won't see much text. Therefore, you should use an InputStream.
  2. They return a special value of -1 to indicate that no more input is available. If the return type had been char or byte, no special value would have been available that is distinguished from a legal data value.


previous | start | next