ResultSet, Connection and Statement are the interfaces in JDBC API. JDBC API only provides the interfaces so that every database providor can write their own implementation.
For example:
To connect to Oracle from Java you use classes111.jar which contains the implementation of interfaces.