Q. Which method in java is used to read lines from file?
β
Correct Answer: (C)
file.getLine()
Explanation: The file.getLine() method is used to read lines from a file.