Question: I need help with my Java final, please help. It's due tonight. QUESTION 17 Which of the following statements moves the cursor to the first
I need help with my Java final, please help. It's due tonight.


QUESTION 17 Which of the following statements moves the cursor to the first row of the duelnvoices result set created in the code below? Statement statement -connection.createStatement ) String query"SELECT InvoiceDate, InvoiceTotal" +"FROM Invoices" "WHERE InvoiceTotal0" + "ORDER BY InvoiceDate ASC" Resultset dueInvoices-statement.executequery (query) a.dueInvoices.next ): b.The cursor is automatically positioned on the first row c.dueInvoices.position (0) d.dueInvoices.setCursor (1); QUESTION 18 Given the code below, which of the following statements will delete all records from the Invoices table that have a value of 0 in the Invoice Total column? String query"DELETE FROM Invoices"+ "WHERE InvoiceTotal-0" Statement statement-connection.createStatement : a.statement.deleteRow) o b.statement.executeUpdate (query) o c.statement.execute) o d.statement.executeQuery (query); QUESTION 19 Lambda expressions a.allow you to treat data like interfaces b.make stack traces easier to understand c.can allow you to write methods that are more flexible and more concise d.work well with the integrated debugger
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
