A

Admin • 828.03K Points
Coach

Q. Which method in java is used to read lines from file?

  • (A) file.read()
  • (B) file.nextLine()
  • (C) file.getLine()
  • (D) All of these
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Java
  • Hashtags:

Explanation by: Admin
The file.getLine() method is used to read lines from a file.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.