Reading about all of the different lens types and abbreviations might be a bit overwhelming, so we'll try to simplify this as much as possible. You're interested in one of the latest NIKKOR lenses, but aren't sure if it will work with your camera. Well, there's an easy way to know—by checking the abbreviations that make up the name of each NIKKOR lens.
Nikon makes two different types of DSLR camera bodies—those that have a built-in focus motor, and those that don't. The cameras that are without a built-in focus motor are required to use a lens that has a built-in focus motor. The abbreviation for lenses that incorporate a built-in focus motor is AF-S and AF-P2. NIKKOR lenses that do not have a focus motor incorporated are simply called AF lenses.
The DSLR camera bodies that do feature a focus motor built-in are: D70, D70s, D80, D90, D100, D200, D300, D300s, D700, D7000 series, D500, D610, D600, D750, D810, D1-series, D2-series, D3-series,D4-series, D5 models1. These DSLRs can utilize both AF and AF-S lenses. Or, in other words, because AF-S NIKKOR lenses have built-in focus motors, they can be used on any current Nikon digital SLR body, whether the body has a focus motor or otherwise, as the lens itself controls the focusing function.
Nikon DSLR cameras that are designed without built-in focus motors, are generally smaller and lighter than the larger, more professional models. The ones that do not incorporate a built-in focus motor (and therefore need to use AF-S or AF-P2 type lenses) include the following: D40, D40x, D60, D3000 series, and the D5000 series1. If you own one of these cameras, then you need to use an AF-S or AF-P2 NIKKOR lens to get the full autofocus capabilities from the lens.
What if you own one of the aforementioned consumer level camera bodies and really want to use an AF lens? You’ll then need to know if your camera is compatible with the lens—and the answer is yes. An AF NIKKOR lens can be used on a DSLR camera body such as the models listed above, but with limited functionality. You will have to manually focus the lens, using the focus ring on the lens barrel. The electronic rangefinder, which is visible in the lower left portion of the viewfinder, will confirm that your subject is in focus. Rotate the focus ring on the lens and when the focus indicator shows a (•), the subject is in focus.
A handy benefit of the AF-S NIKKOR lenses is that they use a "Silent Wave" motor and focus quieter than the AF lenses do. Likewise with the AF-P2 NIKKOR lenses; the lens utilises the stepping motor technology to drive its autofocus while ensuring a fast and quiet focusing, beneficial especially with movie recording.