Sr.Java Web Developer Question:

Download Job Interview Questions and Answers PDF

What is executeUpdate(String query)?

Sr.Java Web Developer Interview Question
Sr.Java Web Developer Interview Question

Answer:

Statement executeUpdate(String query) is used to execute Insert/Update/Delete (DML) statements or DDL statements that returns nothing. The output is int and equals to the row count for SQL Data Manipulation Language (DML) statements. For DDL statements, the output is 0.

Download Sr.Java Web Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me what are the JDBC API components?Explain me how to handle exceptions in Spring MVC Framework?