adplus-dvertising
frame-decoration

Question

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.*;

Posted under DBMS

Answer: (a).Import java.sql.*;

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following header must be included in java program to establish database connectivity using JDBC ?

Similar Questions

Discover Related MCQs

Q. DriverManager.getConnection(_______ , ______ , ______)
What are the two parameters that are included ?

Q. Which of the following invokes functions in sql ?

Q. Which of the following function is used to find the column count of the particular resultset ?

Q. Which of the following is a following statement is a prepared statements ?

Q. Which of the following is used as the embedded SQL in COBOL ?

Q. Which of the following is used to distinguish the variables in SQL from the host language variables ?

Q. The update statement can be executed in host language using

Q. Which of the following is used to access large objects from a database ?

Q. Which of the following is used to input the entry and give the result in a variable in a procedure ?

Q. The format for compound statement is

Q. Repeat
sequence of statements;
__________________
end repeat

Fill in the correct option :

Q. Which of the following is the correct format for if statement ?

Q. A stored procedure in SQL is a___________

Q. Temporary stored procedures are stored in _________ database.

Q. Declare out of classroom seats condition

DECLARE exit handler FOR OUT OF classroom seats
BEGIN
SEQUENCE OF statements
END

The above statements are used for

Q. Trigger are supported in

Q. Which of the following is NOT an Oracle-supported trigger?

Q. What are the different in triggers ?

Q. Triggers ________ enabled or disabled

Q. Which prefixes are available to Oracle triggers?