Thursday, 6 September 2012

How can you execute DML statements (i.e. insert, delete, update) in the database? | JDBC

A. By making use of the InsertStatement, DeleteStatement or UpdateStatement classes
B. By invoking the execute(...) or executeUpdate(...) method of a normal Statement object or a sub-interface object thereof
C. By invoking the executeInsert(...), executeDelete(...) or executeUpdate(...) methods of the DataModificationStatement object
D. By making use of the execute(...) statement of the DataModificationStatement object

Ans:   B

No comments: