Answer:
Connection
Step-by-step explanation:
We can get DatabaseMetaData from the java.sql.Connection object.
The relevant API call is Connection.getMetaData().
This returns an object of the type DatabaseMetaData.
Some of the methods available as part of the DatabaseMetaData object are:
- getDatabaseMajorVersion()
- getDatabaseMinorVersion()
- getDriverName()
- getDriverVersion()
- isReadOnly()
- getCatalogs()
- getTables()
- supportsBatchUpdate()
- supportsUnion()