The evict method is used for detaching the object from hibernate provides evict () method and session cache. After this process, there is no persistence in the change of the object. The detachment of the associated objects can also take place with the mapping associated with the cascade=” evict.”

BY Best Interview Question ON 05 Apr 2019