In JDBC, what represents a single instance of a particular database session?
-
a thread
-
an opened connection
-
a closed connection
-
a pipe
B
Correct answer
Explanation
In JDBC, a Connection object represents a single session with a specific database. An opened connection is required to execute SQL statements and transactions. A thread is a Java execution thread, not a database session concept. A closed connection cannot execute operations. A pipe is not a JDBC concept.