Which JDBC method is utilized to execute DML operations?

Choose the correct answer

Explanation

The executeUpdate() method is specifically designed to run DML statements such as INSERT, UPDATE, and DELETE. The executeQuery() method is used for SELECT statements, while execute() can run any SQL command but is less specific. Therefore, executeUpdate() is the preferred choice for DML operations.

Which JDBC method is utilized to execute DML operati… — Java concepts and its programming | PakQuizHub