Q.

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. import java.sql.*;
Explanation: the java program must import java.sql.*, which contains the interface definitions for the functionality provided by jdbc.
1.3k
0
Do you find this helpful?
22

Discussion

No comments yet