1.

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.*;The question was asked in final exam.The above asked question is from Access SQL From a Programming Language in division SQL : Queries, Constraints and Triggers of Database Management

Answer»

Correct choice is (a) Import java.sql.*;

The BEST I can explain: The Java PROGRAM must import java.sql.*, which contains the interface DEFINITIONS for the functionality PROVIDED by JDBC.



Discussion

No Comment Found

Related InterviewSolutions