There are several difference between these 2 as mentioned by "devkikukde". I would rather focus on when we should use one of them.

1- There is a scenario when you can not modify the object(Third...