Explanation:Embedded SQL, the SQL statements are identified at compile time using a preprocessor. The preprocessor submits the SQL statements to the database system for precompilation and optimization; then it replaces the SQL statements in the application program with appropriate code and function calls before invoking the programming-language compiler. 2. Which of the following header must be included in java program to establish database connectivity using JDBC ?
A. Import java.sql.*;
B. Import java.sql.odbc.jdbc.*;
C. Import java.jdbc.*;
D. Import java.sql.jdbc.*;
Answer:A
Explanation:Embedded SQL, the SQL statements are identified at compile time using a preprocessor. The preprocessor submits the SQL statements to the database system for precompilation and optimization; then it replaces the SQL statements in the application program with appropriate code and function calls before invoking the programming-language compiler. 2. Which of the following header must be included in java program to establish database connectivity using JDBC ?
A. Import java.sql.*; B. Import java.sql.odbc.jdbc.*; C. Import java.jdbc.*; D. Import java.sql.jdbc.*;