See this chart :
http://www.kenrockwell.com/nikon/compatibility-lens.htm
Nikon is a greedy company. They make more money if you have to buy new lenses every time you buy a new camera. So, unlike Canon and Pentax and other camera manufacturers, incompatibilities are built into the cameras...