What is wrong with the following statement?
boolean result = statement.execute("SELECT * FROM emp WHERE empNum = '?'") ;
A) boolean should be ResultSet
B) execute should be executeQuery
C) execute should be prepareStatement
D) (?) should be an integer
Correct Answer:
Verified
Q50: Apache Derby is an example of a:
A)Heavyweight
Q51: What is wrong with the following statement?
ResultSet
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
Q56: What will the following command do?
java -classpath
Q57: Which Java statement connects to a database
Q58: An example of a desktop database is:
A)Oracle
B)MS
Q59: Why should we use try-with-resources to open
Q60: A _ object can create statement objects
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