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
Q42: When you are done with a Statement
Q43: In jdbc.URL, the acronym URL stands for:
A)Universal
Q44: What is wrong with the following statement?
Q47: If you want to find out about
Q48: When you first get a result set
Q49: You can use the generic _ method
Q53: What will the following command do?
Java -classpath
Q60: A _ lets you fetch a query
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