How to resolve StaleElement exception?

Stale element exception will occur when element is identified in DOM(document object model) but does not find in UI(User Interface). […]