我正在准备 Oracle Certified Java Proffesiona (OCP) 认证。这是我第一次接触 JDBC。在我正在准备认证的书中(Kathy Sierra 是作者之一)中提到:
"The collection of the implementation classes is called the JDBC driver. A JDBC driver (lowercase “d“) is the collection of classes required to support the API, whereas Driver (uppercase “D“) is one of the implementations required in a driver."
关于驱动程序,作者想提及什么? Driver 是一个类吗?在 JDBC 驱动程序中实现 Driver 是一个强制要求吗?
最佳答案
Driver是 JDBC 驱动程序的基本接口(interface)
The interface that every driver class must implement.
例如 OracleDriver
Implemented Interfaces: java.sql.Driver
关于java - JDBC驱动程序和驱动程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56989316/