Which of the following method is used to perform DML statements in JDBC?
- executeResult()
- executeQuery()
- executeUpdate()
- execute()
Answer
c. executeUpdate()
Explanation:
We use the executeUpdate() method for DML SQL queries that change data in the database, such as INSERT, UPDATE, and DELETE which do not return a resultset.