How can you execute DML statements (i.e. insert, delete, update) in the database?
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
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
Post a Comment