Conservative forces: A force is said to be conservative if the work done by or against the force is dependent only on the initial and final positions of the body and not on the path followed by the body.
For example: If the initial position of the body is A and the final position is B, then for conservative force.