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
Q23: Oracle is an example of a:
A)Heavyweight Java
Q26: Microsoft Access is an example of a:
A)Heavyweight
Q42: An example of a production-quality database is:
A)Oracle
B)MS
Q44: What is wrong with the following statement?
Q45: If your program needs to look at
Q49: You can use the generic _ method
Q52: What does the execute method return?
A)ResultSet
B)Query
C)RecordSet
D)boolean
Q53: What will the following command do?
java -classpath
Q58: An example of a desktop database is:
A)Oracle
B)MS
Q62: When you close a connection:
A)it closes the
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