Sun defines four JDBC driver types: Type 1 (JDBC-ODBC bridge), Type 2 (native API partly Java), Type 3 (net protocol, pure Java), and Type 4 (native protocol, pure Java). Each type represents a different architecture for connecting Java applications to databases.