You asked

What cameras fit the nikon z 40mm f 2?

Here is what the site says about that.

From Nikon Z 40mm f/2: Nikon Z 40mm f/2: A prime lens by Nikon for Full frame cameras, 40mm f/2. Small, cheap and good: Nikon's everyday prime. Specs - Maker: Nikon - Focal length: 40mm (prime) - Maximum aperture: f/2 - Made for: Full frame sensors - Mounts: Nikon Z - Stabilised: no - Autofocus: yes What it frames like - On full frame (Nikon Z): as marked, 40mm. - On APS-C (Nikon Z): like 60mm on full frame; ...

From Your first camera: What to buy: For most people, a first camera should be a mirrorless camera with an APS-C sensor and its kit zoom. Mirrorless cameras show you the exposure before you take the picture, their autofocus finds and follows eyes, and every major brand is putting its new lenses into mirrorless mounts. A recent entry-level body is plenty; the money goes further in lenses. If you want something that fits in a jacket pocket ...

Quoted from this site's pages.

From these pages