The Java Persistent API defines the Query interface. Which statement is true about the Query.executeUpdate method ?

The Java Persistent API defines the Query interface. Which statement is true about the Query.executeUpdate method ?



a. It must always be executed within a transaction
b. It throws a PersistenceException if no entities were updated.
c. All managed entity objects corresponding to database rows affected by the update will have their state changed to correspond with the update






Answer: A


Learn More :