What is wrong with the following statement?
ResultSet result = statement.execute("SELECT * FROM emp WHERE empNum = '5'") ;
A) ResultSet should be String
B) execute should be executeQuery
C) execute should be prepareStatement
D) 5 should not be used as an empNum value
Correct Answer:
Verified
Q46: In a Java program, the result of
Q47: If you want to find out about
Q48: When you first get a result set
Q49: You can use the generic _ method
Q50: Apache Derby is an example of a:
A)Heavyweight
Q52: What does the execute method return?
A)ResultSet
B)Query
C)RecordSet
D)boolean
Q53: What will the following command do?
java -classpath
Q54: The _ symbol in the query string
Q55: What is wrong with the following statement?
boolean
Q56: What will the following command do?
java -classpath
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents