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
Q23: Oracle is an example of a:
A)Heavyweight Java
Q26: Microsoft Access is an example of a:
A)Heavyweight
Q39: What is one reason why you need
Q40: The _ symbol in the query string
Q42: When you are done with a Statement
Q45: If your program needs to look at
Q49: What is wrong with the following statement?
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
Q75: The _ class has a next method
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