Multiple choice database

In JDBC, what represents a single instance of a particular database session?

  1. a thread

  2. an opened connection

  3. a closed connection

  4. a pipe

Reveal answer Fill a bubble to check yourself
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.