Solved

Which Statement Reads the Configuration File Named Config

Question 85

Multiple Choice

Which statement reads the configuration file named config.txt into a collection for later processing?


A) List<String> configData = Files.read(Paths.get("config.txt") ) ;
B) List<Byte> configData = Files.readAllBytes(Paths.get("config.txt") ) ;
C) List<String> configData = Files.readAllLines("config.txt") ;
D) List<String> configData = Files.readAllLines(Paths.get("config.txt") ) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents