About SQLJ versus JDBC

How does SQLJ compare to JDBC? Here are some of the advantages that SQLJ offers over coding directly in JDBC:

However, JDBC provides finer-grained control over the execution of SQL statements and offers true dynamic SQL capability. If your application requires dynamic capability (discovery of database or instance metadata at runtime), then you should use JDBC.


Embedding SQL in Java Programs
Embedding SQL in Java Programs with SQLJ
Embedding SQL in Java Programs with JDBC
About Oracle JDBC drivers