readLine() method of DataInputStream class reads line from file & returns it as string - Core Java

Q.  Which method of DataInputStream class reads a line from the file and returns it as a string?
- Published on 17 Jul 15

a. WriteInt()
b. readLine()
c. readInt()
d. writeDouble()

ANSWER: readLine()

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)