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:

Verified
Correct Answer:
Verified
Q23: One of the steps for testing the
Q27: Used with the LIKE operator, the _
Q31: The _ clause is used to select
Q45: An example of a desktop database is:<br>A)Oracle<br>B)MS
Q62: The outcome of a SQL query is
Q64: Beginners are afraid of issuing complex SQL
Q65: In a Java program, the result of
Q66: What is wrong with the following statement?
Q71: What is the effect of the following
Q72: In SQL, the _ command is used