Examveda

What does Files.lines(Path path) do?

A. It reads all the files at the path specified as a String

B. It reads all the lines from a file as a Stream

C. It reads the filenames at the path specified

D. It counts the number of lines for files at the path specified

Answer: Option B


This Question Belongs to Java Program >> Java Autoboxing

Join The Discussion

Related Questions on Java Autoboxing

What is autoboxing in Java?

A. The automatic conversion of primitive types to their corresponding wrapper classes

B. The process of creating a new box

C. A feature for manually converting wrapper classes to primitive types

D. A feature for boxing objects