Which programming langauges are backward compatible and which are forward compatible?

Which programming languages are backward compatible and which are forward compatible? I am asking this question because when I found that some languages are deprecating their features in newer version,which existed in older versions and making new code unable to mix up with old code.Why?

I need to know this because I am confused to switch between version of a particular programming language.