Question: what is the difference between save and merge in hibernate?
Answer: So if we want to update present object with previous object changes we have to use merge() method. Merge method will merge changes of both states of object and will save in database. Merge: if you want to save your modifications at any time with out knowing about the state of an session, then use merge() in hibernate.