Multiple choice technology programming languages

Which statement is correct ?

  1. a) A Session will not obtain a JDBC Connection (or a Datasource) unless it is needed

  2. b) A Session will obtain a JDBC Connection (or a Datasource) on object create

  3. c) A Session has no relation with JDBC Connection (or a Datasource)

  4. d) none of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Hibernate, a Session is lightweight and does not immediately acquire a JDBC connection from the connection pool or datasource upon creation. It only obtains a connection when a database transaction or query requires it.