I wonder if the lenses that were used on D5300 and D5200 are also compatible with the D7000 and D7100? I am going to buy the body and lenses separately and I want to be sure I am buying the correct lens.
The D5300 requires lenses that have a built-in motor ( in the lens ) in order to autofocus. Nikon lenses that are suitable will all have the designation "AF-S". Be careful when looking at non-Nikon lenses as they do not use the same designation and in some cases it can be very difficult to tell if a particular lens has a motor or not.
The D7000 series has a motor in the camera body that allows older lenses that do not have a motor to autofocus. So not all lenses that work with the D7000 series will work with the D5300.
Any lens that works on the D5000-series will ( or should ) work on the D7000 series.