Explain the concept of forward and backward compatibility in APIs.

Technical