Solved

What Statement Will Return the Value of a Given Key

Question 21

Multiple Choice

What statement will return the value of a given key from the configuration file? Assume props is of type Properties.


A) String driver = props.getProperty("database.properties") ;
B) Connection conn = SimpleDataSource.getProperty("database.properties") ;
C) String driver = props.getProperty("jdbc.driver") ;
D) Properties props = SampleDataSource.init("jdbc.driver") ;

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