Where is the MPLAB hex file
In the toolbar of MPLAB X there is a Build button. This will write a hex file to a place under a production folder. This folder is located under your MPLABProjects directory.
And under the project name sub folder you can go to: dist\default\production that leads you to the hex file that you can use to program your chip.