What is the correct answer?


In order to connect to a database through java program we must create _______-

A. Connection, Statement, ResultSet

B. Connection, ResultSet

C. Statement< ResultSet

D. Connection, Statement

Correct Answer :

D. Connection, Statement

Related Questions

If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value… If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value… A Java monitor must either extend thread class or implement Runnable interface. We would like to make a member of a class visible in all subclasses regardless… DataInput is Which of the following methods can be used to draw the outline of a square? A constructor must always invoke its supper class constructor in its first… forName() is a static factory method EJBs can be of the following type(s)None of the above It is an error to catch the same type of exception in two different catch… When the string objects are compared with ==, the result is true If the… Throwing an exception always causes program termination. Which of the following are not keywords? Every method of a final in class is implicitly final. Which javadoc tag is used to denote a comment for methods parameters? For all insert, update, delete, query operations on a database, ResultSet… It is an error to have a method with the same signature in both the super… Frames and applets cannot be used together in the same program. To delete a file, we can use an instance of class file. Which of the following control expressions are valid for an if statement? The import statement is always the first no comment statement in a Java… Submit button always fires doPost(...) All the bitwise operators have the same level of precedence in Java. The use of protected keyword to a member in a class will restrict its… Message-Driven beans act as a listener for the Java Message Service API,… A thread can make second thread ineligible for execution by calling the… Every call to wait has a corresponding call to notify that will eventually… The expression (x == y && a<b) is true If either x == y is true or… The name of a Java program file must match the name of the class with… Consider the following statements: int x = 10, y = 15; x = ((x < y)…