Multiple choice technology databases

6.What is, in terms of JDBC, a DataSource?

  1. A DataSource is the basic service for managing a set of JDBC drivers

  2. A DataSource is the Java representation of a physical data source

  3. A DataSource is a registry point for JNDI-services

  4. A DataSource is a factory of connections to a physical data source

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

A DataSource in JDBC is a factory object that provides connections to a physical data source. It offers advantages over DriverManager: connection pooling, distributed transaction support, and easier deployment configuration. It represents (is) the factory, not the source itself, a driver manager, or a JNDI registry point.