The Java Persistence API defines EntityTransaction interface. Which statement is correct?
A.
It is used to control transactions on JTA entity managers.
B.
It is used to control transactions on resourcE. local entity managers.
C.
All methods of this interface will throw lllegalStateException if a transaction is NOT active.
D.
Calling getTransaction method on a closed entity manager will throw an lllegalStateException.