Solved

What Statement Will Return the Value of a Given Key

Question 75

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