Which statement is correct?

Given:

Which statement is correct?

Given:

Which statement is correct?

A.
The method will return TRUE.

B.
The method will return FALSE.

C.
The method will throw an exception.

D.
The order instance will be removed from the database.



Leave a Reply 4

Your email address will not be published. Required fields are marked *


Mohamed Fayek

Mohamed Fayek

Merge the state of the given entity into the current persistence context.
Parameters:
entity – entity instance

Returns:
the managed instance that the state was merged to

Throws:
IllegalArgumentException – if instance is not an entity or is a removed entity
TransactionRequiredException – if invoked on a container-managed entity manager of type PersistenceContextType.TRANSACTION and there is no transaction

Mohamed Fayek

Mohamed Fayek

so answer is C

Sudhir

Sudhir

C ,

If x is remove entity than merge method will throw IllegalArgumentException.

Sudhir

Sudhir

C ,

If x is removed entity than merge method will throw IllegalArgumentException.