Home » JAVA Programming » Files and I/O » Question
  1. Which of these methods are used to read in from file?
    1. scan()
    2. get()
    3. readFileInput()
    4. read()
    5. None of these
Correct Option: D

Each time read() is called, it reads a single byte from the file and returns the byte as an integer value. read() returns -1 when the end of the file is encountered.



Your comments will be displayed only after manual approval.