Java SE 8 Programmer II — Question 44
DriverManager class?
Which statement is true about the
Connection.
Answer options
- A. It returns an instance of
- B. it executes SQL statements against the database.
- C. It only queries metadata of the database.
- D. it is written by different vendors for their specific database.
Correct answer: A
Explanation
The correct answer is A because the Connection object represents a connection to the database and is returned by the DriverManager. Options B, C, and D are incorrect as they describe actions or characteristics that do not specifically pertain to the primary function of the Connection class.